Skip to main content

Module algo

Module algo 

Source
Expand description

Shadow rendering algorithm — free functions shared by every quality tier (StandardShadowsLane, LowResShadowsLane, future variants).

Each function takes its dimensions as parameters; the lane that calls it provides its own (hardcoded-in-the-type) constants. No config struct is injected by the agent: the lane is its quality.

Re-exports§

pub use state::ShadowsLaneState;

Modules§

atlas_2d
2D shadow atlas — directional and spot lights.
atlas_cube
Cube shadow atlas — point lights.
bindings
Bundles the lane’s atlas resources into the [khora_data::render::ShadowGpuBindings] type that lit consumer lanes read from the lane context.
pass
Shared types and helpers for the canonical shadow lane’s depth passes.
state
Shared state container + algorithm for any shadows lane.