Skip to content

ludus::graphics::renderer::DirectLight

Ludus Wiki · API overview · Browse API

Struct

Copied finite light authoring data, independent of scene ownership.

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

#include <ludus/graphics/renderer/light_selection.hpp>
struct ludus::graphics::renderer::DirectLight final

Fields

SourceId

ludus::foundation::uint64 ludus::graphics::renderer::DirectLight::SourceId = 0
Unique nonzero source identity within the submitted list; defines stable selection.

Related types: ludus::foundation::uint64

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

Kind

LightKind ludus::graphics::renderer::DirectLight::Kind = LightKind::Directional
Direct evaluation model.

Related types: LightKind

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

Color

ludus::foundation::math::Vector3 ludus::graphics::renderer::DirectLight::Color {1, 1, 1}
Display-linear RGB hue, each channel in [0,1].

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

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

Intensity

ludus::foundation::float32 ludus::graphics::renderer::DirectLight::Intensity = 1
Lux for directional, candela for point/spot, nits*m² for area samples; [0,1000000].

Related types: ludus::foundation::float32

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

Position

ludus::foundation::math::Vector3 ludus::graphics::renderer::DirectLight::Position {}
Position in meters, each component in [-1000000,1000000].

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

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

Direction

ludus::foundation::math::Vector3 ludus::graphics::renderer::DirectLight::Direction {0, 0, -1}
Nonzero finite direction for directional/spot/area; normalized during admission.

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

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

Range

ludus::foundation::float32 ludus::graphics::renderer::DirectLight::Range = DEFAULT_LIGHT_RANGE_METERS
Point/spot range in meters, [0.01,1000000]; attenuation becomes zero at range.

Related types: ludus::foundation::float32

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

InnerCos

ludus::foundation::float32 ludus::graphics::renderer::DirectLight::InnerCos = DEFAULT_SPOT_INNER_COSINE
Spot inner half-angle cosine; -1 < OuterCos < InnerCos <= 1.

Related types: ludus::foundation::float32

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

OuterCos

ludus::foundation::float32 ludus::graphics::renderer::DirectLight::OuterCos = DEFAULT_SPOT_OUTER_COSINE
Spot outer half-angle cosine, distinct from InnerCos.

Related types: ludus::foundation::float32

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