API reference
API reference
Select your platform
No SDKs available
No versions available

SceneEquirectLayer

SceneEquirectLayer

class SceneEquirectLayer(scene: Scene, swapChain: SceneSwapchain, radius: Float, centralHorizontalAngle: Float, upperVerticalAngle: Float, lowerVerticalAngle: Float, pivotX: Float, pivotY: Float, stereoMode: StereoMode, sceneObject: SceneObject) : SceneLayer
SceneEquirectLayer creates a layer that maps content onto a spherical surface. Can be used to create 180 or 360 degree content by adjusting the centralHorizontalAngle.
See also
NameSummary
For common layer operations like scaling, alpha blending, and z-indexing
For flat rectangular layers
For cylindrical curved layers

Constructors

NameSummary
SceneEquirectLayer
constructor(scene: Scene, swapChain: SceneSwapchain, radius: Float, centralHorizontalAngle: Float, upperVerticalAngle: Float, lowerVerticalAngle: Float, pivotX: Float, pivotY: Float, stereoMode: StereoMode, sceneObject: SceneObject)

Functions

NameSummary
destroy
fun destroy()
setAlphaBlend
fun setAlphaBlend(layerAlphaBlend: LayerAlphaBlend)

Sets the alpha blending mode for this layer.
setClip
fun setClip(minUV: Vector2, maxUV: Vector2, minRightUV: Vector2 = minUV, maxRightUV: Vector2 = maxUV)

Sets the UV clip region for this layer’s swapchain texture.
setColorScaleBias
fun setColorScaleBias(scale: Vector4, bias: Vector4)

Sets the color scale and bias for this layer.
setFilters
fun setFilters(filters: Int)
setScale
fun setScale(scale: Vector3)

Sets the scale of this layer.
setSecure
fun setSecure(secure: Boolean)

Sets whether this layer should be secure.
fun setZIndex(zIndex: Int)

Sets the Z-index of this layer, controlling its rendering order.
updateLayer
fun updateLayer(radius: Float, centralHorizontalAngle: Float, upperVerticalAngle: Float, lowerVerticalAngle: Float, pivotX: Float, pivotY: Float, stereoMode: Int)

Updates the parameters of this equirectangular layer.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon