Class XREquirectLayer
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalXREquirectLayer 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
Constructors
XREquirectLayer()
public XREquirectLayer()
Properties
CentralHorizontalAngle
NOTE
ExperimentalcentralHorizontalAngle 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
centralHorizontalAngleto 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
ExperimentallowerVerticalAngle 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
lowerVerticalAngleto 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
Radius
NOTE
Experimentalradius 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
radiusto a value less than 0 will set it to 0.
Remarks
Space
NOTE
Experimentalspace 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
Remarks
Transform
NOTE
Experimentaltransform 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
Remarks
UpperVerticalAngle
NOTE
ExperimentalupperVerticalAngle 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
upperVerticalAngleto a value less than -π/2 will set it to -π/2 and setting it to a value higher than π/2 will set it to π/2.