ludus::graphics::renderer::SurfaceParameters¶
Ludus Wiki · API overview · Browse API
Struct
Decoded linear surface-map parameters, with a unit positive-hemisphere tangent normal.
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp
#include <ludus/graphics/renderer/lighting.hpp>
struct ludus::graphics::renderer::SurfaceParameters final
Fields¶
NormalTangent¶
ludus::foundation::math::Vector3 ludus::graphics::renderer::SurfaceParameters::NormalTangent {0, 0, 1}
Unit tangent-space direction; positive Y follows increasing transformed texture V.
Related types: ludus::foundation::math::Vector3
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp
Metallic¶
ludus::foundation::float32 ludus::graphics::renderer::SurfaceParameters::Metallic = 0
Texture-modulated metallic in [0,1].
Related types: ludus::foundation::float32
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp
Roughness¶
ludus::foundation::float32 ludus::graphics::renderer::SurfaceParameters::Roughness = 0.5F
Texture-modulated perceptual roughness in [0.045,1].
Related types: ludus::foundation::float32
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/lighting.hpp