Blender Git Loki

Git Commits -> Revision fe5d244

Revision fe5d244 by Jeroen Bakker (master)
December 18, 2020, 09:26 (GMT)
Fix T83494: Eevee clamp node incorrect when min > max.

In glsl the clamp function has undefined behavior when min > max. For
the clamp node this resulted in differences between cycles and eevee.
This patch adds the expected implementation for minmax.

The old clamp function is still used in cases where we know for certain
that the input values are correct (math node clamp option). GPU uses
optimized code and silicon in these cases.

Commit Details:

Full Hash: fe5d2448c6e1348be1f82f10a65d65b992f2477b
Parent Commit: ffb6648
Lines Changed: +8, -2

2 Modified Paths:

/source/blender/gpu/shaders/material/gpu_shader_material_clamp.glsl (+5, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_clamp.cc (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021