Skip to content

ludus::graphics::renderer::ShadowAtlasDescription

Ludus Wiki · API overview · Browse API

Struct

Bounded 80-region atlas; thirteen point/area samples with all six cube faces.

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

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

Fields

Width

ludus::foundation::uint32 ludus::graphics::renderer::ShadowAtlasDescription::Width = 256
RGBA8 atlas width, [4,2048], subject to device limits.

Related types: ludus::foundation::uint32

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

Height

ludus::foundation::uint32 ludus::graphics::renderer::ShadowAtlasDescription::Height = 256
RGBA8 atlas height, [4,2048], subject to device limits.

Related types: ludus::foundation::uint32

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

Regions

const ShadowRegion* ludus::graphics::renderer::ShadowAtlasDescription::Regions = nullptr
Borrowed disjoint guttered regions; copied during preparation.

Related types: ShadowRegion

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

Count

ludus::foundation::usize ludus::graphics::renderer::ShadowAtlasDescription::Count = 0
Positive count, at most SHADOW_REGION_CAPACITY; cascades may share one directional light identity.

Related types: ludus::foundation::usize

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