Skip to content

ludus::graphics::renderer::StaticLightingChart

Ludus Wiki · API overview · Browse API

Struct

Borrowed completed chart payload; caller uploads it on the RHI owner thread. No GPU readback, texture owner or display image is produced by the bake.

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

#include <ludus/graphics/renderer/static_lighting.hpp>
struct ludus::graphics::renderer::StaticLightingChart final

Fields

Width

foundation::uint32 ludus::graphics::renderer::StaticLightingChart::Width = 0
Power-of-two chart width in texels.

Related types: foundation::uint32

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

Height

foundation::uint32 ludus::graphics::renderer::StaticLightingChart::Height = 0
Power-of-two chart height in texels.

Related types: foundation::uint32

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

Pixels

foundation::BorrowedView<const foundation::uint8> ludus::graphics::renderer::StaticLightingChart::Pixels
RGBA8 linear irradiance with replicated per-triangle gutters; borrow ends at job destruction.

Related types: foundation::BorrowedView · foundation::uint8

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

Scale

foundation::math::Vector3 ludus::graphics::renderer::StaticLightingChart::Scale {1, 1, 1}
Multiply normalized texture RGB by this irradiance scale.

Related types: foundation::math::Vector3

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

UvTransform

foundation::math::Vector4 ludus::graphics::renderer::StaticLightingChart::UvTransform {1,
                                          1,
                                          0,
                                          0}
Transform from helper chart UVs to sampled atlas coordinates.

Related types: foundation::math::Vector4

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

SourceId

foundation::uint64 ludus::graphics::renderer::StaticLightingChart::SourceId = 0
Exact placed instance identity.

Related types: foundation::uint64

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

SceneRevision

foundation::uint64 ludus::graphics::renderer::StaticLightingChart::SceneRevision = 0
Must match the drawn extraction's revision.

Related types: foundation::uint64

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

DependencyRevision

foundation::uint64 ludus::graphics::renderer::StaticLightingChart::DependencyRevision = 0
Must match the retained cooked dependency revision.

Related types: foundation::uint64

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

Transform

foundation::math::Affine3 ludus::graphics::renderer::StaticLightingChart::Transform {}
Exact mesh-to-world used by the bake.

Related types: foundation::math::Affine3

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

SkippedTriangleCount

foundation::uint32 ludus::graphics::renderer::StaticLightingChart::SkippedTriangleCount = 0
Zero-area triangles of this object that the bake skipped; their chart tiles hold zero irradiance.

Related types: foundation::uint32

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