Expand description
Zero-Heap Procedural IBL Cubemap Generator & GGX Specular Prefilter (Pure Rust).
Structs§
- IblCubemap
Generator - GPU-resident cubemap IBL generator and prefiltered environment probe state.
- IblCubemap
Params - Uniform parameters for
IblCubemapGenerator(64 bytes).
Constants§
- IBL_
BRDF_ LUT_ SIZE - IBL_
CUBEMAP_ CONVOLVE_ WGSL - WGSL compute shader for 6-face procedural sky cubemap generation, diffuse irradiance convolution, 5-mip GGX importance-sampled specular prefiltering, and split-sum BRDF integration.
- IBL_
ENV_ CUBEMAP_ SIZE - IBL_
IRRADIANCE_ CUBEMAP_ SIZE - IBL_
SPECULAR_ CUBEMAP_ SIZE - IBL_
SPECULAR_ MIP_ COUNT
Functions§
- cubemap_
face_ uv_ to_ direction - Maps a cubemap face index (
0..=5for+X, -X, +Y, -Y, +Z, -Z) and normalized face coordinatesuvin[-1.0, 1.0]^2to a unit world-space direction vector. - eval_
procedural_ sky_ radiance_ zero_ heap - Evaluates the procedural Rayleigh + Henyey-Greenstein Mie sky radiance in direction
diron the CPU with zero heap allocations (HotZeroHeap). - integrate_
split_ sum_ brdf_ zero_ heap - Evaluates the split-sum BRDF integration $(s, b)$ at
(n_dot_v, roughness)using Hammersley GGX importance sampling with zero heap allocations (HotZeroHeap).