|
|
|
|
|
|
ltcValue = LTCEvaluate(P1, P2, B, preLightData.ltcXformDisneyDiffuse); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (ltcValue == 0.0) |
|
|
|
{ |
|
|
|
// The light is below the horizon. |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
#ifndef LIT_DIFFUSE_LAMBERT_BRDF |
|
|
|
ltcValue *= preLightData.ltcDisneyDiffuseMagnitude; |
|
|
|
#endif |
|
|
|
|
|
|
#else |
|
|
|
ltcValue = LTCEvaluate(matL, V, bsdfData.normalWS, preLightData.NdotV, preLightData.ltcXformDisneyDiffuse); |
|
|
|
#endif |
|
|
|
|
|
|
|
if (ltcValue == 0.0) |
|
|
|
{ |
|
|
|
// The polygon is either back-facing, or has been completely clipped. |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
#ifndef LIT_DIFFUSE_LAMBERT_BRDF |
|
|
|
ltcValue *= preLightData.ltcDisneyDiffuseMagnitude; |
|
|
|