Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Thapa
visualization
Commits
4f4a3ffe
Commit
4f4a3ffe
authored
Jun 19, 2023
by
Thapa
Browse files
Update index.html
parent
5ea38436
Pipeline
#7871
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
4f4a3ffe
...
...
@@ -26,18 +26,19 @@ async function activateXR() {
// The cube will have a different color on each side.
const
materials
=
[
new
THREE
.
MeshNormalMaterial
({
color
:
0xff0000
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0x
ff
0000
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0x
ff
0000
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0xff00
00
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0x
ff0000
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0x0000
ff
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0x00
ff
00
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0xff00
ff
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0x
00ffff
}),
new
THREE
.
MeshNormalMaterial
({
color
:
0xffff00
})
];
// Create the cube and add it to the demo scene.
const
cube
=
new
THREE
.
Mesh
(
new
THREE
.
Sph
er
e
Geometry
(
0.2
,
0.2
,
0.2
),
materials
);
const
cube
=
new
THREE
.
Mesh
(
new
THREE
.
BoxBuff
erGeometry
(
0.2
,
0.2
,
0.2
),
materials
);
cube
.
position
.
set
(
1
,
1
,
1
);
scene
.
add
(
cube
);
// Set up the WebGLRenderer, which handles rendering to the session's base layer.
const
renderer
=
new
THREE
.
WebGLRenderer
({
alpha
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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