SightlineOccluder

Marker for a Drawable that wishes to participate as an occluder in DrawableSightline's depth pass.

The built-in shape, mesh and COLLADA drawables already cast shadows in the sightline overlay via dedicated handlers inside DrawableSightline. Custom drawables that live outside the engine's known set - or any subclass that needs different rendering than the default - implement this interface and the sightline will dispatch to them alongside the built-in handlers.

Surface decals (decals rasterised onto the terrain texture), screen-space sprites (placemarks, leader lines, labels) and dedicated line drawables should not implement this interface — they don't represent occluding volumes and would produce visual artefacts in the visibility map.

Inheritors

Functions

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

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