Skip to content

ludus::graphics::renderer::EnvironmentDescription

Ludus Wiki · API overview · Browse API

Struct

Borrowed linear HDR latitude/longitude image; Initialize copies all pixels. +Y is north, longitude zero is +X, increasing longitude turns toward +Z.

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

#include <ludus/graphics/renderer/environment.hpp>
struct ludus::graphics::renderer::EnvironmentDescription final

Fields

PixelsOrNull

const ludus::foundation::math::Vector4* ludus::graphics::renderer::EnvironmentDescription::PixelsOrNull = nullptr
Tightly packed top-left rows, RGB radiance [0,1e12]; alpha is ignored. Initialize requires Width*Height records and a nonnull pointer; it copies them during the call without retaining the caller's storage.

Related types: ludus::foundation::math::Vector4

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

Width

ludus::foundation::uint32 ludus::graphics::renderer::EnvironmentDescription::Width = 0
Positive source dimensions, each at most 4096; need not be powers of two.

Related types: ludus::foundation::uint32

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

Height

ludus::foundation::uint32 ludus::graphics::renderer::EnvironmentDescription::Height = 0
Positive source height; top row borders the north pole.

Related types: ludus::foundation::uint32

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

FilterWidth

ludus::foundation::uint32 ludus::graphics::renderer::EnvironmentDescription::FilterWidth = 128
Power-of-two prefiltered width [16,512]; height is half this value.

Related types: ludus::foundation::uint32

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

FilterSamples

ludus::foundation::uint32 ludus::graphics::renderer::EnvironmentDescription::FilterSamples = 128
Deterministic GGX samples per filtered texel, [16,1024]. Preparation only.

Related types: ludus::foundation::uint32

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

CpuByteBudget

ludus::foundation::usize ludus::graphics::renderer::EnvironmentDescription::CpuByteBudget = 0
Explicit CPU preparation/retention budget in bytes; zero rejects.

Related types: ludus::foundation::usize

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