Unless you know what you are doing, use the VR extension instead of this function directly.
In VR, only 3D elements can be rendered, 2D cannot.
This rendering method skips over all 2D layers and elements, and simply renders the 3D content.
This method is to be called by the XRSession's requestAnimationFrame
for rendering to
the headset whenever the headset requests the screen to be drawn. Note that while an XRSession
is in progress, the regular requestAnimationFrame
will be disabled. Make sure that whenever you
enter an XRSession, you:
requestAnimationFrame
disabled.Note to engine developers: threeRenderer.resetState()
may NOT be called in this function,
as WebXR modifies the WebGL state in a way that resetting it will cause an improper render
that will lead to a black screen being displayed in VR mode.
Change the position of a layer.
Generated using TypeDoc
The renderer for a gdjs.RuntimeScene using Pixi.js.