Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ramirez
CIV
Commits
231a0edb
Commit
231a0edb
authored
Jun 20, 2023
by
Ramirez
Browse files
Update public/FirtsTrial.html
parent
037547b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/FirtsTrial.html
View file @
231a0edb
...
...
@@ -35,7 +35,7 @@ async function activateXR() {
const
loader
=
new
THREE
.
GLTFLoader
();
let
model
;
loader
.
load
(
"
URL_TO_YOUR_GTLF_MODEL
"
,
function
(
gltf
)
{
loader
.
load
(
"
https://transfer.hft-stuttgart.de/gitlab/bramirez/civ/-/blob/master/gltf/scene.gltf
"
,
function
(
gltf
)
{
model
=
gltf
.
scene
;
});
...
...
@@ -44,7 +44,7 @@ async function activateXR() {
baseLayer
:
new
XRWebGLLayer
(
session
,
gl
)
});
const
referenceSpace
=
await
session
.
requestReferenceSpace
(
'
local
'
);
const
referenceSpace
=
await
session
.
requestReferenceSpace
(
'
local
'
);
s
const
viewerSpace
=
await
session
.
requestReferenceSpace
(
'
viewer
'
);
const
hitTestSource
=
await
session
.
requestHitTestSource
({
space
:
viewerSpace
});
...
...
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