Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. XRQuadLayer

XRQuadLayer

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.

TheXRQuadLayer interface of theWebXR Device API is a layer that takes up a flat rectangular space in the virtual environment. AnXRQuadLayer has no thickness. It is a two-dimensional object positioned and oriented in 3D space. The position of a quad refers to the center of the quad. Only the front of the layer is visible.

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

To create a newXRQuadLayer, call either:

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

EventTarget XRLayer XRCompositionLayer XRQuadLayer

Instance properties

Inherits properties from its parent,XRCompositionLayer.

XRQuadLayer.heightExperimental

Represents the height of the layer in meters.

XRQuadLayer.spaceExperimental

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

XRQuadLayer.transformExperimental

AnXRRigidTransform representing the offset and orientation relative tospace.

XRQuadLayer.widthExperimental

Represents the width of the layer in meters.

Instance methods

Inherits methods from its parents,XRCompositionLayer andEventTarget.

Events

redrawExperimental

Sent to theXRQuadLayer 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
# xrquadlayertype

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp