forked from bartvdbraak/blender
FIX: OSL mix shader clamps 2nd color component to 3rd one.
Previously the OSL Mix shader node was clamping the 2nd color component (green) to the 3rd color component (blue). Now every component is clamped on its own.
This commit is contained in:
parent
89d91f5a7d
commit
38dcce2da2
@ -272,7 +272,7 @@ color node_mix_clamp(color col)
|
||||
color outcol = col;
|
||||
|
||||
outcol[0] = clamp(col[0], 0.0, 1.0);
|
||||
outcol[1] = clamp(col[2], 0.0, 1.0);
|
||||
outcol[1] = clamp(col[1], 0.0, 1.0);
|
||||
outcol[2] = clamp(col[2], 0.0, 1.0);
|
||||
|
||||
return outcol;
|
||||
|
Loading…
Reference in New Issue
Block a user