AlphaDepthProgram

Alpha-tested variant of DirectionalDepthProgram for cutout-textured casters (tree billboards, fences, alpha-masked 3D-Tile submeshes): samples the caster's base-colour texture on unit 0 and discards fragments below the cutoff, so the cascade maps carry the cutout silhouette instead of the full quad. Kept separate from the opaque program - a discard-capable shader disables early depth optimisations, which opaque casters keep.

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
Link copied to clipboard
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