Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Esguerra Montana
Web AR
Commits
c2d3ddbd
Commit
c2d3ddbd
authored
1 year ago
by
Esguerra Montana
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html
parent
8dd4045c
Pipeline
#9366
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Show 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 @
c2d3ddbd
...
...
@@ -24,10 +24,10 @@ async function activateXR() {
const
scene
=
new
THREE
.
Scene
();
// Color of the torus geometry.
const
material
=
new
THREE
.
MeshBasic
Material
({
color
:
0x
ff0000
});
const
material
=
new
THREE
.
Points
Material
({
color
:
0x
7a0177
,
size
:
0.1
});
// Create the torus and add it to the demo scene.
const
torus
=
new
THREE
.
Mesh
(
new
THREE
.
TorusKnotGeometry
(
0.3
,
0.2
,
64
,
8
,
2
,
3
),
material
);
const
torus
=
new
THREE
.
Mesh
(
new
THREE
.
TorusKnotGeometry
(
0.3
,
0.2
,
32
,
6
,
2
,
3
),
material
);
//position the next geometry (sphere)
torus
.
position
.
set
(
0
,
0
,
-
1
);
// Add the mesh to the scene
...
...
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