Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Thapa
visualization
Commits
2c2d557b
Commit
2c2d557b
authored
1 year ago
by
Thapa
Browse files
Options
Download
Email Patches
Plain Diff
Update 1-Cube.html
parent
cf26a8be
Pipeline
#8087
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/1-Cube.html
+1
-6
public/1-Cube.html
with
1 addition
and
6 deletions
+1
-6
public/1-Cube.html
+
1
-
6
View file @
2c2d557b
...
@@ -25,16 +25,11 @@ async function activateXR() {
...
@@ -25,16 +25,11 @@ async function activateXR() {
// The cube will have a different color on each side.
// The cube will have a different color on each side.
const
materials
=
[
const
materials
=
[
new
THREE
.
MeshBasicMaterial
({
color
:
0x744700
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x000000
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x000000
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x000000
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x000000
}),
new
THREE
.
MeshBasicMaterial
({
color
:
0x000000
})
new
THREE
.
MeshBasicMaterial
({
color
:
0x000000
})
];
];
// 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
.
BoxBuffer
Geometry
(
0.5
,
0.5
,
0.
5
),
materials
);
const
cube
=
new
THREE
.
Mesh
(
new
THREE
.
Cone
Geometry
(
0.5
,
1
,
5
),
materials
);
cube
.
position
.
set
(
0
,
0
,
-
1
);
cube
.
position
.
set
(
0
,
0
,
-
1
);
scene
.
add
(
cube
);
scene
.
add
(
cube
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets