Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tsymbal
public
Commits
4c212336
You need to sign in or sign up before continuing.
Commit
4c212336
authored
Jun 19, 2023
by
Tsymbal
Browse files
Update public/cube.html
parent
3190cc3e
Pipeline
#7774
passed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/cube.html
View file @
4c212336
...
@@ -34,8 +34,8 @@ const materials = [
...
@@ -34,8 +34,8 @@ const materials = [
];
];
// Create the cube and add it to the demo scene.
// Create the cube and add it to the demo scene.
const
cube
=
new
THREE
.
Mesh
(
new
THREE
.
BoxBufferGeometry
(
0.
2
,
0.
2
,
0.
2
),
materials
);
const
cube
=
new
THREE
.
Mesh
(
new
THREE
.
BoxBufferGeometry
(
0.
5
,
0.
5
,
0.
5
),
materials
);
cube
.
position
.
set
(
1
,
1
,
1
);
cube
.
position
.
set
(
0
,
0
,
-
1
);
scene
.
add
(
cube
);
scene
.
add
(
cube
);
// Set up the WebGLRenderer, which handles rendering to the session's base layer.
// Set up the WebGLRenderer, which handles rendering to the session's base layer.
...
@@ -91,6 +91,7 @@ const onXRFrame = (time, frame) => {
...
@@ -91,6 +91,7 @@ const onXRFrame = (time, frame) => {
}
}
}
}
session
.
requestAnimationFrame
(
onXRFrame
);
session
.
requestAnimationFrame
(
onXRFrame
);
}
}
</script>
</script>
</body>
</body>
...
...
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