Table of Contents

Class XREquirectLayer

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XREquirectLayer interface of the WebXR Device API is a layer that maps equirectangular coded data onto the inside of a sphere.
[Value("XREquirectLayer")]
public class XREquirectLayer : XRCompositionLayer
Inheritance
XREquirectLayer
Inherited Members

Remarks

XREquirectLayer requires the layers feature to be enabled for the XRSession. You can request it in RequestSession(XRSessionMode, XRSessionInit).

To create a new XREquirectLayer, call either:

To present layers to the XR device, add them to the layers render state using UpdateRenderState(XRRenderStateInit).

-XRLayer
-EventTarget
-XRCompositionLayer
-XRCylinderLayer
-XRCubeLayer
-XRQuadLayer
-XRProjectionLayer

See also on MDN

Constructors

XREquirectLayer()

public XREquirectLayer()

Properties

CentralHorizontalAngle

NOTE
Experimental
The centralHorizontalAngle property of the XREquirectLayer interface represents the central horizontal angle in radians for the sphere.
[Value("centralHorizontalAngle")]
public Number CentralHorizontalAngle { get; set; }

Property Value

Number

A number representing the central horizontal angle in radians for the sphere. Setting centralHorizontalAngle to a value less than 0 will set it to 0 and setting it to a value higher than 2π will set it to 2π.

Remarks

LowerVerticalAngle

NOTE
Experimental
The lowerVerticalAngle property of the XREquirectLayer interface represents the lower vertical angle in radians for the sphere.
[Value("lowerVerticalAngle")]
public Number LowerVerticalAngle { get; set; }

Property Value

Number

A number representing the lower vertical angle in radians for the sphere. Setting lowerVerticalAngle to a value less than -π/2 will set it to -π/2 and setting it to a value higher than π/2 will set it to π/2.

Remarks

Onredraw

[Value("onredraw")]
public EventHandlerNonNull Onredraw { get; set; }

Property Value

EventHandlerNonNull

Radius

NOTE
Experimental
The radius property of the XREquirectLayer interface represents the radius of the sphere.
[Value("radius")]
public Number Radius { get; set; }

Property Value

Number

A number representing the non-negative radius (in meters) of the sphere. Values of zero or infinity are treated as representing an infinite sphere. Setting radius to a value less than 0 will set it to 0.

Remarks

Space

NOTE
Experimental
The space property of the XREquirectLayer interface represents the layer's spatial relationship with the user's physical environment.
[Value("space")]
public XRSpace Space { get; set; }

Property Value

XRSpace

An XRSpace.

Remarks

Transform

NOTE
Experimental
The transform property of the XREquirectLayer interface represents the offset and orientation relative to the layer's Space.
[Value("transform")]
public XRRigidTransform Transform { get; set; }

Property Value

XRRigidTransform

An XRRigidTransform.

Remarks

UpperVerticalAngle

NOTE
Experimental
The upperVerticalAngle property of the XREquirectLayer interface represents the upper vertical angle in radians for the sphere.
[Value("upperVerticalAngle")]
public Number UpperVerticalAngle { get; set; }

Property Value

Number

A number representing the upper vertical angle in radians for the sphere. Setting upperVerticalAngle to a value less than -π/2 will set it to -π/2 and setting it to a value higher than π/2 will set it to π/2.

Remarks