Skip to content

ludus::graphics::renderer::SceneShaderInputs

Ludus Wiki · API overview · Browse API

Struct

Optional shared scene inputs. Empty material assignments use the neutral default; malformed references use diagnostic magenta only under DiagnosticColor admission. Analytic lights have no required geometry. Raster area proxy records are rejected: submit real mesh emitters instead to avoid duplicate illumination.

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

#include <ludus/graphics/renderer/scene_shader.hpp>
struct ludus::graphics::renderer::SceneShaderInputs final

Fields

Materials

foundation::BorrowedView<const SceneShaderMaterial> ludus::graphics::renderer::SceneShaderInputs::Materials
Global material table.

Related types: foundation::BorrowedView · SceneShaderMaterial

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

Lights

foundation::BorrowedView<const DirectLight> ludus::graphics::renderer::SceneShaderInputs::Lights
Directional, point and spot sources.

Related types: foundation::BorrowedView · DirectLight

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

Luminaires

foundation::BorrowedView<const PanelLuminaire> ludus::graphics::renderer::SceneShaderInputs::Luminaires
At most MAX_PANEL_LUMINAIRES panel luminaires, admitted by NormalizePanelLuminaires. Only scene shaders that read them (GetLuminaireCount/GetLuminaireInfo) are lit by them; they are submitted with the lights.

Related types: foundation::BorrowedView · PanelLuminaire

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

Environment

foundation::math::Vector3 ludus::graphics::renderer::SceneShaderInputs::Environment {}
Constant RGB, or HDR pixel multiplier, [0,10000].

Related types: foundation::math::Vector3

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

EnvironmentWidth

foundation::uint32 ludus::graphics::renderer::SceneShaderInputs::EnvironmentWidth = 0
Equirectangular width, zero for a constant.

Related types: foundation::uint32

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

EnvironmentHeight

foundation::uint32 ludus::graphics::renderer::SceneShaderInputs::EnvironmentHeight = 0
Equirectangular height, zero for a constant.

Related types: foundation::uint32

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

EnvironmentPixels

foundation::BorrowedView<const foundation::math::Vector3> ludus::graphics::renderer::SceneShaderInputs::EnvironmentPixels
North-to-south finite nonnegative HDR texels. After multiplication by Environment, each channel must fit MAX_ENVIRONMENT_RADIANCE, the same source-radiance bound as EnvironmentMap. Preparation copies these samples.

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

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