Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. XRCubeLayer

XRCubeLayer

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.

TheXRCubeLayer interface of theWebXR Device API is a layer that renders directly from acubemap and projects it onto the inside faces of a cube.

XRCubeLayer requires thelayers feature to be enabled for theXRSession. You can request it inXRSystem.requestSession().

To create a newXRCubeLayer, callXRWebGLBinding.createCubeLayer().

To present layers to the XR device, add them to thelayers render state usingXRSession.updateRenderState().

EventTarget XRLayer XRCompositionLayer XRCubeLayer

Instance properties

Inherits properties from its parent,XRCompositionLayer.

XRCubeLayer.spaceExperimental

AnXRSpace representing the layer's spatial relationship with the user's physical environment.

XRCubeLayer.orientationExperimental

ADOMPointReadOnly representing the orientation relative to thespace property.

Instance methods

Inherits methods from its parents,XRCompositionLayer andEventTarget.

Events

redrawExperimental

Sent to theXRCubeLayer object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame.

Specifications

Specification
WebXR Layers API Level 1
# xcubelayertype

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp