Skip to main content

Crate forge_ibl_bake

Crate forge_ibl_bake 

Source
Expand description

Public API for the forge-ibl-bake IBL texture pipeline.

Load an equirectangular HDRI with hdr::load_hdr_file, configure with BakeParams, then call bake_all to emit KTX2 textures. Zero forge_* deps. PROVEN: all discriminator tests (white-furnace, BRDF boundary, determinism, monotonic blur, point-source, KTX2 roundtrip) gate the public API surface.

Re-exports§

pub use bake::bake_all;
pub use bake::bake_brdf_lut;
pub use bake::bake_irradiance;
pub use bake::bake_specular_env;
pub use bake::BakeParams;
pub use error::BakeError;
pub use hdr::load_hdr;
pub use hdr::load_hdr_file;
pub use hdr::HdrImage;

Modules§

bake
The three IBL bake passes and their orchestrator.
error
Typed error for every fallible operation in the bake pipeline.
hdr
Radiance RGBE (.hdr) parser → linear f32 RGB pixel buffer.
ktx2
Hand-rolled KTX2 container writer (Khronos KTX 2.0 spec, no supercompression).
sample
Low-discrepancy sampling, GGX importance sampling, and geometry utilities.
sh
SH9 projection of an equirectangular HDR environment onto 9 real SH bands.