Skip to main content

bake

Function bake 

Source
pub fn bake(
    sc: &PtScene<'_>,
    patch: &BakePatch,
    res: u32,
    samples: u32,
    seed: u32,
) -> Vec<[f32; 3]>
Expand description

Bestrahlungsstärke je Texel backen: res × res Feld, samples cosine-gewichtete Muster je Texel, Stromwurzel seed. Ergebnis ist interleaved RGB (3 × res²) in linearer Skala — direkt als Lightmap verwendbar oder nach Tonemapping als Vorschau-PNG.