Post #1268872
2026-02-19 13:14 UTC
@kbob What did you do to "enable" HDR and tone mapping? Care to elaborate a bit? I'm interested in this topic atm!
Replies (1)
-
@kbob@chaos.social 2026-02-19 13:51
@rtn I am using wgpu-py, which is based wgpu, based on WebGPU. You can draw into an internal texture of format rgba32float, then use full-range f32 color values. Tone mapping is a separate render pass that translates each pixel down to rgba8uint. It uses a function that compresses the values component by component to the range 0.0-1.0 (or 0-255 when converted to uint8). 1/