Function createEsmDirectionalShadowGenerator
-
createEsmDirectionalShadowGenerator(
engine: EngineContext,
_light: DirectionalLight,
cfg?: EsmDirectionalShadowGeneratorConfig,
): ShadowGeneratorParameters
- engine: EngineContext
The engine providing the GPU device.
- _light: DirectionalLight
The directional light that casts the shadows.
- cfg: EsmDirectionalShadowGeneratorConfig = {}
Optional shadow-map, blur, and projection configuration.
Returns ShadowGenerator
A
ShadowGeneratorwired to the directional ESM render path. - engine: EngineContext
Creates an exponential shadow map (ESM) shadow generator for a directional light, including the depth, blur, and final ESM textures plus the per-frame render task hooks.