Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

World-space bounding sphere for ShadowCaster cascade culling.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Kept alive off-camera for the shadow/sightline depth passes; color draw skips.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val shadowCasterCenter: Vec3?

World-space bounding sphere center used to skip cascades whose AABB doesn't intersect this caster. Default null opts out of culling — the caster is dispatched into every cascade. Implementations populate this from their shape's boundingBox.center to gain per-cascade culling.

Link copied to clipboard
open override val shadowCasterRadius: Double

World-space bounding sphere radius. Only consulted when shadowCasterCenter is non-null.

Link copied to clipboard

Cast/receive selector for cascaded sun shadows. Set per scene by earth.worldwind.formats.collada.ColladaScene and earth.worldwind.formats.gltf.GltfScene. Default ShadowMode.ENABLED = both casts and receives.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun draw(dc: DrawContext)
Link copied to clipboard
open override fun drawShadowDepth(dc: DrawContext, shadow: DrawableShadow)

Renders this drawable's caster geometry into the currently bound cascade shadow map. Called once per cascade by DrawableShadow. The depth-pass program is already bound and the cascade's MVP base matrix loaded; the implementation only needs to bind its own vertex buffer, set its model translation via DrawableShadow.loadCasterTranslation / DrawableShadow.loadCasterMatrix, and call DrawableShadow.drawShapeStateOccluder (or issue raw draws for non-DrawShapeState geometry).

Link copied to clipboard
open override fun drawSightlineDepth(dc: DrawContext, sightline: DrawableSightline)

Render this drawable's filled-triangle geometry into the sightline's depth pass.

Link copied to clipboard
open override fun recycle()