SoftLight
float4 Softlight(float4 a , float4 b , float t)
{
Float4 cNew = (b < 0.5) ? (2.0 * a * b + a * a * (1.0 - 2.0 * b)) :
(sqrt(a) * (2.0 * b - 1.0) + 2.0 * a * (1.0 - b));
return lerp(a , cNew , t);
}
SoftLight
float4 Softlight(float4 a , float4 b , float t)
{
Float4 cNew = (b < 0.5) ? (2.0 * a * b + a * a * (1.0 - 2.0 * b)) :
(sqrt(a) * (2.0 * b - 1.0) + 2.0 * a * (1.0 - b));
return lerp(a , cNew , t);
}