[215] Cycles: Szene aus dem Kern, CLI render --engine cycles, Tonwert, Doku und Bilder

This commit is contained in:
Claude committed 2026-11-17 08:37:57 +00:00
1 parent 34ffdf1e1c
commit f8347a132e
22 files changed
+2183 -53

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
//! Bindung der Cycles-Nachbearbeitung ([215], `crate::cycles_post`): lineares Fliesskomma-Bild → sRGB 8 Bit.
use crate::cycles_post::{tonemap, Look};
use wasm_bindgen::prelude::wasm_bindgen;
/// `data`: RGB oder RGBA (`channels` 3/4), zeilenweise von oben, lineares Licht; `ev`: Zusatzbelichtung in Blenden;
/// `look`: "filmic" (Standard) oder "standard". Ergebnis: RGB 8 Bit; leer bei kaputtem Puffer.
#[wasm_bindgen]
pub fn cycles_tonemap(data: &[f32], channels: u32, ev: f64, look: &str) -> Vec<u8> {
tonemap(data, channels as usize, ev, Look::parse(look))
}
+1
View File
@@ -52,6 +52,7 @@ pub mod furniture_lib;
pub mod solid_bool;
pub mod line_pattern;
pub mod fonts;
pub mod cycles;
use wasm_bindgen::prelude::wasm_bindgen;