Skip to main content

bake_payload

Function bake_payload 

Source
pub fn bake_payload<S: RowScheduler>(
    hdr: &HdrImage,
    prefilter_face: u32,
    irradiance_face: u32,
    prefilter_samples: u32,
    prefilter_clamp: f32,
    rows: &S,
) -> Vec<u8> 
Expand description

Convolve an equirectangular source into the serialised IBL payload: header, irradiance cube, prefilter mips. One bake serves the cook pipeline, the editor’s hot-reload preview, and a runtime bake, so no path can diverge from the built asset; rows spreads each convolution’s independent output rows over whatever the caller has (super::schedule::Serial without a pool).