SceneDepthProgram

Depth-only program for camera-perspective offscreen prepasses (e.g. the Gaussian-splat pass's terrain occlusion depth). Unlike DirectionalDepthProgram there is no caster pancaking: under a perspective projection, geometry in front of the near plane must clip exactly as the main color pass clips it — pancaking it onto the near plane would write bogus near depth into the prepass target and wrongly occlude everything behind it.

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
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