Skip to content

ludus::graphics::renderer::PlanarAreaLightDescription

Ludus Wiki · API overview · Browse API

Struct

One connected planar source patch; triangle tessellation does not change its area-weighted centroid or emitted power. Borrowed inputs are consumed synchronously.

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

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

Fields

PositionsMesh

ludus::foundation::BorrowedView<const ludus::foundation::math::Vector3> ludus::graphics::renderer::PlanarAreaLightDescription::PositionsMesh
Finite mesh-local positions; borrowed for this call.

Related types: ludus::foundation::BorrowedView · ludus::foundation::math::Vector3

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

Indices

ludus::foundation::BorrowedView<const ludus::foundation::uint32> ludus::graphics::renderer::PlanarAreaLightDescription::Indices
Triangle list with consistent outward winding; producer guarantees one connected patch.

Related types: ludus::foundation::BorrowedView · ludus::foundation::uint32

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

MeshToWorld

ludus::foundation::math::Affine3 ludus::graphics::renderer::PlanarAreaLightDescription::MeshToWorld {}
Finite nonsingular transform; areas are computed in world metres.

Related types: ludus::foundation::math::Affine3

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

Emission

ludus::foundation::math::Vector3 ludus::graphics::renderer::PlanarAreaLightDescription::Emission {}
Resolved RGB nits, each channel in [0,10000].

Related types: ludus::foundation::math::Vector3

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

SourceId

ludus::foundation::uint64 ludus::graphics::renderer::PlanarAreaLightDescription::SourceId = 0
Unique nonzero proxy identity.

Related types: ludus::foundation::uint64

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

Range

ludus::foundation::float32 ludus::graphics::renderer::PlanarAreaLightDescription::Range = 100
Smooth attenuation/shadow range in metres.

Related types: ludus::foundation::float32

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

IsTwoSided

bool ludus::graphics::renderer::PlanarAreaLightDescription::IsTwoSided = false
Emit from both geometric sides.

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