diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-10-12 09:47:12 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-10-12 09:56:14 +0300 |
commit | 872a45f42bc5a582fac59e9cd24239ee25821bff (patch) | |
tree | 578aebfda4bcd28075fb3565ede2118ae9ed62ff /source/blender/editors/object | |
parent | 78634b1fd1fb76f101cd36e05fc80d00cd4c6f07 (diff) |
ImageEngine: Clamp image data to fit half float range.
When image data exceeds half float ranges values are set to +/-
infinity that could lead to artifacts later on in the pipeline.
Color management for example.
This patch adds a utility function `IMB_gpu_clamp_half_float`
that clamps full float values to fit within the range of
half floats.
This fixes T98575 and T101601.
Diffstat (limited to 'source/blender/editors/object')
0 files changed, 0 insertions, 0 deletions