Creates and returns render passes for shadow mapping from the perspective of a light source. The render pass renders the provided entities using the light entity's camera view to generate shadow moment data stored in the shadow framebuffer.
Array of scene graph entities to be rendered for shadow generation
Light entity that implements both light and camera functionality used as the shadow map camera viewpoint
Array containing a single render pass configured for shadow moment rendering
Returns the framebuffer containing the rendered shadow moment data. This framebuffer stores the depth moments in RG16F format and can be used for shadow calculations in subsequent rendering passes.
The shadow moment framebuffer containing depth moment texture data
A shadow mapping utility class that handles the creation and management of shadow maps using moment-based shadow mapping techniques. This class provides functionality to generate shadow moment data by rendering scene entities from a light source perspective and storing the depth information in a specialized framebuffer for later shadow calculations.
The shadow map uses RG16F texture format to store depth moments, which allows for better shadow quality and soft shadow effects compared to traditional shadow mapping.