Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix noise issue that appears in certain image textures
The issue is that if a pixel's color value in 8 bit format is close 1 (out of 255), when assigned to `math::Color`, `math::Color::Clamp` assumes it to be in the floating point range [0.0 - 1.0] instead of 8 bit unsigned range of [0 - 255]. The fix here is to convert colors to floating point at the source instead of relying on `Color::Clamp`. Signed-off-by: Addisu Z. Taddese <[email protected]>
- Loading branch information