DirectionalDepthProgram

Depth-only caster program for the cascaded sun-shadow pipeline. Rasterises caster geometry through each cascade's orthographic light projection; the cascade framebuffer's DEPTH_COMPONENT texture receives the hardware depth value, which receivers later sample and compare directly. There is no meaningful colour output — the caller masks colour writes off for the whole pass.

Because the stored value is true hardware depth, glPolygonOffset applies slope-scaled bias in the caster pass itself — steeply-lit triangles get proportionally more bias, which a receiver-side constant can never do without erasing contact shadows.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Indicates the approximate size of the OpenGL resources referenced by this GPU program.

Functions

Link copied to clipboard
open override fun loadModelviewProjection(matrix: Matrix4)
Link copied to clipboard
open override fun release(dc: DrawContext)

Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.

Link copied to clipboard