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:
Konrad Kleine 2012-12-04 08:40:24 +00:00
parent 89d91f5a7d
commit 38dcce2da2

@ -272,7 +272,7 @@ color node_mix_clamp(color col)
color outcol = col; color outcol = col;
outcol[0] = clamp(col[0], 0.0, 1.0); 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); outcol[2] = clamp(col[2], 0.0, 1.0);
return outcol; return outcol;