Skip to content

ludus::graphics::renderer::SurfacePoint

Ludus Wiki · API overview · Browse API

Struct

One sampled static surface, four explicit sixteen-byte feature records. RGB values are linear, normals unit length, positions in World units. Values remain in authored scale; model-specific normalization belongs to the model adapter.

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

#include <ludus/graphics/renderer/surface_points.hpp>
struct ludus::graphics::renderer::SurfacePoint final

Fields

PositionWorld

foundation::math::Vector3 ludus::graphics::renderer::SurfacePoint::PositionWorld {}
Barycentrically sampled transformed position.

Related types: foundation::math::Vector3

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

TriangleIndex

foundation::uint32 ludus::graphics::renderer::SurfacePoint::TriangleIndex = 0
Preparation-local triangle identity; not a source mesh index.

Related types: foundation::uint32

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

NormalWorld

foundation::math::Vector3 ludus::graphics::renderer::SurfacePoint::NormalWorld {}
Interpolated shading normal, including admitted normal map.

Related types: foundation::math::Vector3

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

MaterialIndex

foundation::uint32 ludus::graphics::renderer::SurfacePoint::MaterialIndex = 0
Source material identity or DEFAULT_SCENE_MATERIAL.

Related types: foundation::uint32

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

Albedo

foundation::math::Vector3 ludus::graphics::renderer::SurfacePoint::Albedo {}
Textured base reflectance, including vertex and instance multipliers.

Related types: foundation::math::Vector3

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

SourceIdLow

foundation::uint32 ludus::graphics::renderer::SurfacePoint::SourceIdLow = 0
Low half of the source instance's diagnostic identity.

Related types: foundation::uint32

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

Emission

foundation::math::Vector3 ludus::graphics::renderer::SurfacePoint::Emission {}
Authored textured emission, without reflected illumination.

Related types: foundation::math::Vector3

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

SourceIdHigh

foundation::uint32 ludus::graphics::renderer::SurfacePoint::SourceIdHigh = 0
High half of the source instance's diagnostic identity.

Related types: foundation::uint32

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