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
WebarTTP
Commits
c675ef82
Commit
c675ef82
authored
Jun 16, 2024
by
Esguerra Montana
Browse files
Update index.html
parent
6af52c74
Pipeline
#9470
passed with stage
in 26 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/index.html
View file @
c675ef82
...
...
@@ -15,6 +15,7 @@
<button
onclick=
"activateXR()"
>
Start Hit to Place Demo
</button>
<script>
async
function
activateXR
()
{
try
{
const
canvas
=
document
.
createElement
(
"
canvas
"
);
document
.
body
.
appendChild
(
canvas
);
const
gl
=
canvas
.
getContext
(
"
webgl
"
,
{
xrCompatible
:
true
});
...
...
@@ -102,6 +103,9 @@ async function activateXR() {
}
};
session
.
requestAnimationFrame
(
onXRFrame
);
}
catch
(
error
)
{
console
.
error
(
"
Error in activateXR:
"
,
error
);
}
}
</script>
</body>
...
...
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