Function enableCsmStaticCache
-
enableCsmStaticCache(
engine: EngineContext,
sg: ShadowGenerator,
options: CsmStaticCacheOptions,
): Promise<void>Parameters
- engine: EngineContext
- sg: ShadowGenerator
- options: CsmStaticCacheOptions
Returns Promise<void>
Enables the opt-in static/dynamic caster cache for a CSM generator.
Call and await this before registering the scene or requesting the generator's receiver texture. The cache implementation is dynamically imported, so CSM scenes that do not call this function fetch none of its code.