A collection of tone mapping algorithms for Rust
use tonemap::filmic::*;
0f32.filmic();
[0f32, 0f32, 0f32].filmic();
glam::Vec3::zero().filmic();
spirv_std::Vec3::zero().filmic();
// ...
- Exposure Correct
- Gamma Correct
- Linear
- Reinhard
- ACES
- High Quality
- High Performance
- Unreal 3
- Lottes
- Uchimura
- Filmic
- RomBinDaHouse
- Reinhard
- Simple
- Luma Based
- White Preserving
- Haarm-Peter Duiker
- Uncharted 2
- Sigmoid Contrast
The tone mapping traits are implemented for the following libraries as well:
feature | library |
---|---|
glam_support |
glam |
spirv-std-support |
spirv-std |