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
Esguerra Montana
Web AR
Commits
4f5f80d4
Commit
4f5f80d4
authored
1 year ago
by
Esguerra Montana
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html
parent
74e48dbc
Pipeline
#9424
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+2
-2
public/index.html
with
2 additions
and
2 deletions
+2
-2
public/index.html
+
2
-
2
View file @
4f5f80d4
...
...
@@ -32,10 +32,10 @@ async function activateXR() {
scene
.
add
(
ambientLight
);
// Color of the tetrahedron geometry.
const
material
=
new
THREE
.
MeshPhysicalMaterial
({
color
:
0x
ff0000
,
roughness
:
0.5
,
metalness
:
0.5
,
clearcoat
:
1.0
,
clearcoatRoughness
:
0.1
});
const
material
=
new
THREE
.
MeshPhysicalMaterial
({
color
:
0x
C70039
,
roughness
:
0.5
,
metalness
:
0.5
,
clearcoat
:
1.0
,
clearcoatRoughness
:
0.1
});
// Create the tetrahedron and add it to the demo scene.
const
tetrahedron
=
new
THREE
.
Mesh
(
new
THREE
.
TetrahedronGeometry
(
1
),
material
);
const
tetrahedron
=
new
THREE
.
Mesh
(
new
THREE
.
TetrahedronGeometry
(
0.7
),
material
);
// Position the tetrahedron
tetrahedron
.
position
.
set
(
0
,
0
,
-
1
);
...
...
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