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
WebarTTP
Commits
c675ef82
Commit
c675ef82
authored
11 months ago
by
Esguerra Montana
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html
parent
6af52c74
Pipeline
#9470
passed with stage
in 26 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+90
-86
public/index.html
with
90 additions
and
86 deletions
+90
-86
public/index.html
+
90
-
86
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>
...
...
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