Skip to content

ludus::graphics::renderer::ShadowRegion

Ludus Wiki · API overview · Browse API

Struct

One atlas cell, authored from an unjittered light view; order selects overlapping cascades.

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp

#include <ludus/graphics/renderer/lighting.hpp>
struct ludus::graphics::renderer::ShadowRegion final

Fields

Light

DirectLight ludus::graphics::renderer::ShadowRegion::Light {}
Exact light description. Point/area samples require all six canonical cube faces.

Related types: DirectLight

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp

CubeFace

ludus::foundation::uint32 ludus::graphics::renderer::ShadowRegion::CubeFace = ~ludus::foundation::uint32{0}
Cube face 0..5 for point/area; all ones for directional/spot projections.

Related types: ludus::foundation::uint32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp

NearDistance

ludus::foundation::float32 ludus::graphics::renderer::ShadowRegion::NearDistance = .01F
Cube near distance in metres; canonical far distance is Light.Range.

Related types: ludus::foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp

WorldToClip

ludus::foundation::math::Matrix4 ludus::graphics::renderer::ShadowRegion::WorldToClip = ludus::foundation::math::Matrix4::Identity()
Canonical conventional-depth light projection, Z [0,1], XY [-1,1], Y up.

Related types: ludus::foundation::math::Matrix4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp

Interior

rhi::RasterRectangle ludus::graphics::renderer::ShadowRegion::Interior {}
Inner drawing rectangle; must leave at least one texel of clear gutter on every side.

Related types: rhi::RasterRectangle

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp

Bias

ludus::foundation::float32 ludus::graphics::renderer::ShadowRegion::Bias = 0.001F
Receiver bias in normalized light depth, [0,0.01], independent of camera reverse-Z.

Related types: ludus::foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp