天天看點

Substance designer Blend node Soft-Light structure example

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);
}
           
Substance designer Blend node Soft-Light structure example
Substance designer Blend node Soft-Light structure example

繼續閱讀