Skip to main content

Module pbr

Module pbr 

Source
Expand description

Physically Based Rendering (PBR) material system.

Provides PbrMaterial, material presets, a material cache, and GLSL uniform block generation. Sub-modules contain the full BRDF library, atmospheric rendering math, and environment probe / global-illumination helpers.

Modules§

atmosphere
Atmospheric and environmental rendering mathematics.
brdf
Complete BRDF (Bidirectional Reflectance Distribution Function) library.
probe
Environment probes and global illumination helpers.

Structs§

GlslMaterialBlock
Generates GLSL source code for a uniform block that matches the layout of a PbrMaterial. Use this to keep CPU-side structs and shaders in sync.
MaterialCache
Content-addressable, LRU-evicting cache for PbrMaterial values.
MaterialKey
A hash key derived from the content of a PbrMaterial. Two materials that are structurally identical produce the same key.
MaterialPreset
Factory methods that return physically plausible PbrMaterial presets for common real-world materials. All values are based on measured data where available.
PbrMaterial
Complete physically based rendering material definition.
TextureHandle
Opaque handle to a GPU texture resource. The renderer back-end maps this integer to an actual texture object.

Enums§

AlphaMode
Controls how the alpha component of albedo is interpreted.