Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ayivor
ben
Commits
2a8585cd
Commit
2a8585cd
authored
Jun 23, 2023
by
Ayivor
Browse files
Update Cube.html
parent
3ca00cb7
Pipeline
#8234
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/Cube.html
View file @
2a8585cd
...
...
@@ -25,12 +25,12 @@ async function activateXR() {
// The cube will have a different color on each side.
const
materials
=
[
new
THREE
.
MeshBasicMaterial
({
color
:
0x
ff0000
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
0000
ff
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
00ff00
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0xff
00ff
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
00ffff
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
ffff00
})
new
THREE
.
MeshBasicMaterial
({
color
:
0x
003366
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
66cc
ff
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
ff6666
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0xff
cc66
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
99ff66
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x
cc00cc
})
];
// Create the cube and add it to the demo scene.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment