OVRMultiview2 class
The extension is part of the WebGL API and adds support for rendering into multiple views simultaneously. This especially useful for virtual reality (VR) and WebXR. For more information, see also:
Multiview on WebXR three.js multiview demo Multiview in babylon.js Optimizing Virtual Reality: Understanding Multiview Multiview WebGL Rendering for Oculus Browser 6.0+
WebGL extensions are available using the
WebGLRenderingContext.getExtension()
method. For more
information, see also Using Extensions in the WebGL tutorial.
Note: Support depends on the system's graphics driver
(Windows+ANGLE and Android are supported; Windows+GL, Mac, Linux
are not supported).
This extension is only available to WebGL 2 contexts as it
needs GLSL 3.00 and texture arrays.
Currently, there is no way to use multiview to render to a
multisampled backbuffer, so you should create contexts with
antialias: false
. However, the Oculus browser (6+) also
supports multisampling using the OCULUS_multiview
extension.
See also this WebGL issue.
- Available extensions
- Annotations
-
- @JS('OVR_multiview2')
- @staticInterop
Constructors
- OVRMultiview2()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- framebufferAttachmentTextureBaseViewIndexOvr → int
-
no setter
- framebufferAttachmentTextureNumViewsOvr → int
-
no setter
- framebufferIncompleteViewTargetsOvr → int
-
no setter
- maxViewsOvr → int
-
no setter