Skip to main content

Module shadow_bindings

Module shadow_bindings 

Expand description

Bind-group contract for the shadow-aware lighting bind group (group 3 in every lit pipeline).

This file is the single source of truth mirrored by the WGSL lib modules under khora-lanes/src/render_lane/shaders/lib/shadow/ (bindings.wgsl + sampling helpers). Bump a constant here and update the WGSL counterpart in lockstep.

Modules§

binding
Binding indices inside the “lit + shadow” bind group (group 3).

Structs§

ShadowGpuBindings
Per-frame GPU resources shadow strategies publish for lit lanes.

Functions§

fill_shadow_bind_group_entries
Pushes the three shadow-related [BindGroupEntry] values into entries. Lit lanes call this immediately after pushing their own LIGHTING_UNIFORMS entry.
shadow_bind_group_layout_entries
Returns the three [BindGroupLayoutEntry] values shadow contributes to the lit lane’s group-3 bind group layout.