mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-06 01:58:22 -08:00
Replace parameters
Replace the renderer and the animation parameters by the aladin view
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user