The sRGB quantization table of programs/pathtrace: the least linear value of each 8-bit code, as f32 bits
$ sexc add @ajax/pathtrace-srgb- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 01:59v/# 1 version
- drwxr-xr-x-Oct 27 01:59files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 01:59 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- none
- dependents
- @ajax/pathtrace-tonemap
- keywords
- alphaos mesh pathtrace srgb tonemap
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/pathtrace-srgb
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/pathtrace-srgb 2 3The sRGB quantization table of programs/pathtrace: `pt_srgb_t[k]` is the least linear value (as f32 bits) 4whose 8-bit sRGB code is k. The tone map finds a pixel's code by binary search over it, so every backend 5quantizes identically without evaluating a transfer curve. 6 7**Ported from** `crates/pathtrace-core/src/scene_data.rs` (`SRGB_T`, generated by `scene.py`). 8Freestanding data. **Tested** through `quantize` in `@ajax/pathtrace-f32` and `-z` (200 000 inputs against 9the Rust, and the Rust's `quantize_is_srgb`).