Function createPcfDirectionalShadowGenerator
-
createPcfDirectionalShadowGenerator(
engine: EngineContext,
_light: DirectionalLight,
cfg?: PcfDirectionalShadowGeneratorConfig,
): ShadowGeneratorParameters
- engine: EngineContext
The engine providing the GPU device.
- _light: DirectionalLight
The directional light that casts the shadows.
- cfg: PcfDirectionalShadowGeneratorConfig = {}
Optional shadow-map and projection configuration.
Returns ShadowGenerator
A
ShadowGeneratorwired to the directional PCF render path. - engine: EngineContext
Creates a PCF (percentage-closer filtering) shadow generator for a directional light, using an orthographic projection auto-fit to the caster meshes' world AABBs.