Function getCsmReceiverTexture
-
Parameters
- sg: ShadowGenerator
A cascaded-shadow generator from createCsmDirectionalShadowGenerator.
Returns Texture2D
A stable
Texture2Dwith a 2d-array depth view. - sg: ShadowGenerator
A cascaded-shadow generator from createCsmDirectionalShadowGenerator.
A stable Texture2D with a 2d-array depth view.
Returns the borrowed depth-array texture wrapper used by a custom CSM receiver.
The wrapper shares the generator's texture and comparison sampler, is cached per generator, and remains valid for the generator's lifetime. Callers must not dispose or release it independently.