This commit is contained in:
2026-02-21 22:17:44 -08:00
parent 423807c62f
commit 0adcafd697
14 changed files with 981 additions and 59 deletions

View File

@ -42,9 +42,10 @@ class CameraObject extends Object {
this.data = data;
#if lnx_vr
iron.system.VR.initButton();
#end
// dont just auto initialize VR button - headset trait controls VR
// #if lnx_vr
// iron.system.VR.initButton();
// #end
buildProjection();
@ -85,7 +86,14 @@ class CameraObject extends Object {
projectionJitter();
#end
// matrices are set by VR system so avoid rebuilding transforms unless its in preview/not presenting
#if (kha_webgl && lnx_vr)
if (@:privateAccess !RenderPath.isVRPresenting()) {
buildMatrix();
}
#else
buildMatrix();
#end
RenderPath.active.renderFrame(g);