Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Rahman
Argumented Reality
Commits
ecffcc91
Commit
ecffcc91
authored
11 months ago
by
Rahman
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html
parent
ce44dc7d
Pipeline
#9303
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+5
-5
public/index.html
with
5 additions
and
5 deletions
+5
-5
public/index.html
+
5
-
5
View file @
ecffcc91
...
@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
...
@@ -70,14 +70,14 @@ loader.load("https://immersive-web.github.io/webxr-samples/media/gltf/reticle/re
scene
.
add
(
reticle
);
scene
.
add
(
reticle
);
})
})
let
flower
;
let
rabbit
;
loader
.
load
(
"
https://immersive-web.github.io/webxr-samples/media/gltf/
sunflower/sunflower
.gltf
"
,
function
(
gltf
)
{
loader
.
load
(
"
https://immersive-web.github.io/webxr-samples/media/gltf/
rabbit/scene
.gltf
"
,
function
(
gltf
)
{
flower
=
gltf
.
scene
;
rabbit
=
gltf
.
scene
;
});
});
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
session
.
addEventListener
(
"
select
"
,
(
event
)
=>
{
if
(
flower
)
{
if
(
rabbit
)
{
const
clone
=
flower
.
clone
();
const
clone
=
rabbit
.
clone
();
clone
.
position
.
copy
(
reticle
.
position
);
clone
.
position
.
copy
(
reticle
.
position
);
scene
.
add
(
clone
);
scene
.
add
(
clone
);
}
}
...
...
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