simvx.graphics.renderer.shadow_renderer

Shadow map rendering: directional CSM and positional (point/spot) shadows.

Module Contents

Classes

ShadowRenderer

Handles shadow depth map rendering for directional, point, and spot lights.

Data

API

simvx.graphics.renderer.shadow_renderer.__all__

[‘CasterRows’, ‘ShadowRenderer’, ‘assign_caster_slots’]

simvx.graphics.renderer.shadow_renderer.log

‘getLogger(…)’

class simvx.graphics.renderer.shadow_renderer.ShadowRenderer(renderer: simvx.graphics.renderer.forward.Renderer)

Handles shadow depth map rendering for directional, point, and spot lights.

Initialization

render_shadows(cmd: Any, registry: Any) None

Render shadow depth maps for directional lights.

render_point_spot_shadows(cmd: Any, registry: Any) None

Render the positional casters that need it, then patch the shadow SSBO.

The SSBO is written for every caster whatever the pass records: a light whose row was kept still has a shadow map, and the shader has to be told where to sample it and from which light position.