Fix T72954: Cycles gradient texture not clamped when using OSL

This commit is contained in:
Brecht Van Lommel 2020-01-08 16:56:39 +01:00
parent d5ca72191c
commit 15c463cee3

@ -56,7 +56,7 @@ float gradient(point p, string type)
result = r;
}
return result;
return clamp(result, 0.0, 1.0);
}
shader node_gradient_texture(