Function createPcfSpotlightShadowGenerator
-
createPcfSpotlightShadowGenerator(
engine: EngineContext,
_light: SpotLight,
cfg?: PcfSpotlightShadowGeneratorConfig,
): ShadowGeneratorParameters
- engine: EngineContext
The engine providing the GPU device.
- _light: SpotLight
The spot light that casts the shadows.
- cfg: PcfSpotlightShadowGeneratorConfig = {}
Optional shadow-map and projection configuration.
Returns ShadowGenerator
A
ShadowGeneratorwired to the spot-light PCF render path. - engine: EngineContext
Creates a PCF (percentage-closer filtering) shadow generator for a spot light, using a perspective projection derived from the light's cone angle.