Replace parameters

Replace the renderer and the animation parameters by the aladin view
This commit is contained in:
ftheurel
2023-10-19 06:50:41 +00:00
parent b7642b4a81
commit ed135d1306

View File

@@ -35,10 +35,10 @@ class VRButton {
async function onSessionStarted(session) {
session.addEventListener('end', onSessionEnded);
await renderer.xr.setSession(session);
await view.options.vr.renderer.xr.setSession(session);
button.textContent = 'EXIT VR';
renderer.setAnimationLoop(render);
view.redrawVR();
currentSession = session;
}