forked from EXT/VR180-Web-Player
Replace camera reference comparison with view matrix eye detection for more reliable left/right eye identification. Recent Quest Browser updates (Chromium 138/140, Horizon OS v83) changed WebXR multiview behavior, causing the previous xrCamera.cameras[0]/[1] comparison to fail intermittently on the left eye. The new approach uses activeCamera.matrixWorldInverse.elements[12] (the X translation in the view matrix) which reliably indicates: - Negative value = left eye - Positive value = right eye This method is consistent across both Quest Browser and Safari/VisionOS. Also adds explicit video texture synchronization in the render loop to prevent timing-related glitches. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>