Skip to content

ludus::graphics::renderer::StaticLightingSurfaceDescription

Ludus Wiki · API overview · Browse API

Struct

Current World material terms for one placed object, copied at Initialize. Texture indices refer to the retained SceneDefinition CPU texture array. This override uses MaterialDescription's white untextured base; an empty override list retains SceneDefinition's legacy black untextured contract.

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

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

Fields

Texture

foundation::uint32 ludus::graphics::renderer::StaticLightingSurfaceDescription::Texture =
~foundation::uint32{0}
CPU scene texture index or all ones for the untextured base.

Related types: foundation::uint32

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

Tint

foundation::math::Vector4 ludus::graphics::renderer::StaticLightingSurfaceDescription::Tint {1, 1, 1, 1}
Linear RGB/alpha multiplier in [0,1].

Related types: foundation::math::Vector4

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

UvTransform

foundation::math::Vector4 ludus::graphics::renderer::StaticLightingSurfaceDescription::UvTransform {1,
                                          1,
                                          0,
                                          0}
Base texture UV scale XY and offset ZW, finite and bounded to 1e6.

Related types: foundation::math::Vector4

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

Metallic

foundation::float32 ludus::graphics::renderer::StaticLightingSurfaceDescription::Metallic = 0
Metallic fraction in [0,1].

Related types: foundation::float32

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

Roughness

foundation::float32 ludus::graphics::renderer::StaticLightingSurfaceDescription::Roughness = .5F
Perceptual roughness in [.045,1].

Related types: foundation::float32

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

Emission

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

Related types: foundation::math::Vector3

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

IsEmissionTwoSided

bool ludus::graphics::renderer::StaticLightingSurfaceDescription::IsEmissionTwoSided = true
Geometric emission sidedness.

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

ShouldRepeatTexture

bool ludus::graphics::renderer::StaticLightingSurfaceDescription::ShouldRepeatTexture = false
Repeat UV addressing; false clamps.

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

Alpha

MaterialAlpha ludus::graphics::renderer::StaticLightingSurfaceDescription::Alpha = MaterialAlpha::Opaque
Opaque or Masked transport; Painter returns Unsupported.

Related types: MaterialAlpha

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

AlphaCutoff

foundation::float32 ludus::graphics::renderer::StaticLightingSurfaceDescription::AlphaCutoff = .5F
Masked alpha threshold in [0,1].

Related types: foundation::float32

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

Scattering

content::scene_format::MaterialScattering ludus::graphics::renderer::StaticLightingSurfaceDescription::Scattering {}
Typed source material parameters; default retains the legacy reflection model.

Related types: content::scene_format::MaterialScattering

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