ludus::content::scene_format::LightingRecord¶
Ludus Wiki · API overview · Browse API
Struct
Version 3 to 6 trailer followed by LightCount LightRecords, then optional HDR RGB. Environment pixels are equirectangular, rows north to south, with linear RGB radiance in nits multiplied by EnvironmentRgb. Zero dimensions select the constant EnvironmentRgb radiance; zero RGB means no authored environment.
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
#include <ludus/content/scene_format/luscn.h>
struct ludus::content::scene_format::LightingRecord final
Fields¶
Profile¶
uint32 ludus::content::scene_format::LightingRecord::Profile
LIGHTING_PROFILE_REC709_PHOTOMETRIC.
Related types: uint32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
LightCount¶
uint32 ludus::content::scene_format::LightingRecord::LightCount
0..MAX_LIGHTS.
Related types: uint32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
EnvironmentWidth¶
uint32 ludus::content::scene_format::LightingRecord::EnvironmentWidth
Both dimensions zero, or 1..MAX_ENVIRONMENT_DIMENSION.
Related types: uint32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
EnvironmentHeight¶
uint32 ludus::content::scene_format::LightingRecord::EnvironmentHeight
Same dimension contract as EnvironmentWidth.
Related types: uint32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
EnvironmentRgb¶
float32 ludus::content::scene_format::LightingRecord::EnvironmentRgb[3][3]
Nonnegative finite RGB scale or constant nits.
Related types: float32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h