Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Esguerra Montana
Web AR
Commits
76e2d4f4
Commit
76e2d4f4
authored
Jun 16, 2024
by
Esguerra Montana
Browse files
Update index.html
parent
4f9dceb7
Pipeline
#9417
passed with stage
in 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/index.html
View file @
76e2d4f4
...
@@ -24,10 +24,10 @@ async function activateXR() {
...
@@ -24,10 +24,10 @@ async function activateXR() {
const
scene
=
new
THREE
.
Scene
();
const
scene
=
new
THREE
.
Scene
();
// Color of the torus geometry.
// Color of the torus geometry.
const
material
=
new
THREE
.
Mesh
Standard
Material
({
color
:
0x
238b45
,
roughness
:
0.5
,
metalness
:
0.5
});
const
material
=
new
THREE
.
Mesh
Physical
Material
({
color
:
0x
02818a
,
roughness
:
0.5
,
metalness
:
0.5
,
clearcoat
:
1.0
,
clearcoatRoughness
:
0.1
});
// Create the torus and add it to the demo scene.
// Create the torus and add it to the demo scene.
const
torus
=
new
THREE
.
Mesh
(
new
THREE
.
T
orusKnotGeometry
(
0.2
,
0.2
,
5
,
4
,
1
,
2
)
,
material
);
const
torus
=
new
THREE
.
Mesh
(
new
THREE
.
T
etrahedronGeometry
(
1
);
,
material
);
//position the next geometry (sphere)
//position the next geometry (sphere)
torus
.
position
.
set
(
0
,
0
,
-
1
);
torus
.
position
.
set
(
0
,
0
,
-
1
);
// Add the mesh to the scene
// Add the mesh to the scene
...
...
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