Fix edge case of blender passthrough for second cycle not picking the correct input color.

This commit is contained in:
Dario 2024-05-15 00:07:52 -03:00
parent 6ba9d9dd0b
commit 9d2f11e515

View File

@ -406,7 +406,8 @@ namespace interop {
finalAlpha = 0.0f;
}
else {
blenderColor = fromInputPM((A == A_ZERO) ? M : P, inputs, combinerColor.rgb);
const float3 inputColor = replaceCcWithBlender ? blenderColor : combinerColor.rgb;
blenderColor = fromInputPM((A == A_ZERO) ? M : P, inputs, inputColor.rgb);
finalAlpha = 1.0f;
}
}