|
|
|
|
|
|
int g_numLights; |
|
|
|
int g_numReflectionProbes; |
|
|
|
int _useLegacyCookies; |
|
|
|
int _transparencyShadows; |
|
|
|
|
|
|
|
float4x4 g_mViewToWorld; |
|
|
|
float4x4 g_mWorldToView; // used for reflection only |
|
|
|
|
|
|
|
|
|
|
int shadowIdx = asint(gPerLightData[lightIndex].y); |
|
|
|
[branch] |
|
|
|
if (shadowIdx >= 0) |
|
|
|
if (shadowIdx >= 0 && _transparencyShadows) |
|
|
|
{ |
|
|
|
float shadow = GetDirectionalShadowAttenuation(shadowContext, vPw, 0.0.xxx, shadowIdx, 0.0.xxx); |
|
|
|
atten *= shadow; |
|
|
|
|
|
|
|
|
|
|
int shadowIdx = asint(gPerLightData[lightIndex].y); |
|
|
|
[branch] |
|
|
|
if (shadowIdx >= 0) |
|
|
|
if (shadowIdx >= 0 && _transparencyShadows) |
|
|
|
{ |
|
|
|
float shadow = GetPunctualShadowAttenuation(shadowContext, vPw, 0.0.xxx, shadowIdx, vLw); |
|
|
|
atten *= shadow; |
|
|
|
|
|
|
|
|
|
|
int shadowIdx = asint(gPerLightData[lightIndex].y); |
|
|
|
[branch] |
|
|
|
if (shadowIdx >= 0) |
|
|
|
if (shadowIdx >= 0 && _transparencyShadows) |
|
|
|
{ |
|
|
|
float shadow = GetPunctualShadowAttenuation(shadowContext, vPw, 0.0.xxx, shadowIdx, 0.0.xxx); |
|
|
|
atten *= shadow; |
|
|
|