API reference

DepthLayer Object

Preset depth offsets for StereoCanvasPanelScope.drawStereo. Positive = forward (toward viewer).

Signature

object DepthLayer

Properties

BACKGROUND : Float
[Get]
Content sits 5cm behind the panel — clearly separated background layer.
Signature
const val BACKGROUND: Float
FAR : Float
[Get]
Content sits 2cm behind the panel — subtle recess.
Signature
const val FAR: Float
NEAR : Float
[Get]
Content floats 2cm in front of the panel — subtle pop-out.
Signature
const val NEAR: Float = 0.02f
SURFACE : Float
[Get]
Content sits on the panel surface (zero disparity).
Signature
const val SURFACE: Float = 0.0f