Fix T72954: Cycles gradient texture not clamped when using OSL
This commit is contained in:
@@ -56,7 +56,7 @@ float gradient(point p, string type)
|
|||||||
result = r;
|
result = r;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return clamp(result, 0.0, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
shader node_gradient_texture(
|
shader node_gradient_texture(
|
||||||
|
Reference in New Issue
Block a user