Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. XRWebGLBinding

XRWebGLBinding

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

TheXRWebGLBinding interface is used to create layers that have a GPU backend.

Constructor

XRWebGLBinding()Experimental

Creates a newXRWebGLBinding object for the specified XR session and WebGL rendering context.

Instance properties

XRWebGLBinding.nativeProjectionScaleFactorRead onlyExperimental

ThescaleFactor that was passed in during the construction of the projection layer. The native buffer size is scaled by this number.

Instance methods

XRWebGLBinding.createCubeLayer()Experimental

Returns anXRCubeLayer object, which is a layer that renders directly from acubemap, and projects it onto the inside faces of a cube.

XRWebGLBinding.createCylinderLayer()Experimental

Returns anXRCylinderLayer object which is a layer that takes up a curved rectangular space in the virtual environment.

XRWebGLBinding.createEquirectLayer()Experimental

Returns anXREquirectLayer object which is a layer that mapsequirectangular coded data onto the inside of a sphere.

XRWebGLBinding.createProjectionLayer()Experimental

Returns anXRProjectionLayer object which is a layer that fills the entire view of the observer and is refreshed close to the device's native frame rate.

XRWebGLBinding.createQuadLayer()Experimental

Returns anXRQuadLayer object which is a two-dimensional object positioned and oriented in 3D space.

XRWebGLBinding.getDepthInformation()Experimental

Returns anXRWebGLDepthInformation object containing WebGL depth information.

XRWebGLBinding.getReflectionCubeMap()Experimental

Returns aWebGLTexture object containing a reflection cube map texture.

XRWebGLBinding.getSubImage()Experimental

Returns anXRWebGLSubImage object representing the WebGL texture to render.

XRWebGLBinding.getViewSubImage()Experimental

Returns anXRWebGLSubImage object representing the WebGL texture to render for anXRView.

Specifications

Specification
WebXR Layers API Level 1
# XRWebGLBindingtype

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp