forked from bartvdbraak/blender
Fix T72954: Cycles gradient texture not clamped when using OSL
This commit is contained in:
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(
|
||||
|
Loading…
Reference in New Issue
Block a user