http
HTTP/1.1 200 OK
Content-Type: text/html
Permissions-Policy: xr-spatial-tracking=(self), accelerometer=(self), gyroscope=(self)
<!DOCTYPE html>
<html>
<head><title>VR Adventure</title></head>
<body>
<button id="enter-vr">Enter VR</button>
<script>
document.getElementById('enter-vr').addEventListener('click', async () => {
const xrSession = await navigator.xr.requestSession('immersive-vr', {
requiredFeatures: ['local-floor', 'bounded-floor']
});
xrSession.requestReferenceSpace('local-floor').then(refSpace => {
// Setup VR rendering with spatial tracking
});
});
</script>
</body>
</html>