|
|
|
|
|
|
int requestIdx = shadowRequests[i]; |
|
|
|
VisibleLight vl = lights[requestIdx]; |
|
|
|
int facecount = 0; |
|
|
|
GPUShadowType shadowType = GPUShadowType.Point; |
|
|
|
GPUShadowType shadowType = GetShadowLightType( vl.light ); |
|
|
|
bool add = (distToCam < asd.shadowFadeDistance || vl.lightType == LightType.Directional) && m_ShadowSettings.enabled; |
|
|
|
bool add = shadowType != GPUShadowType.Unknown && (distToCam < asd.shadowFadeDistance || vl.lightType == LightType.Directional) && m_ShadowSettings.enabled; |
|
|
|
|
|
|
|
if( add ) |
|
|
|
{ |
|
|
|
|
|
|
add = --m_MaxShadows[(int)GPUShadowType.Directional, 0] >= 0; |
|
|
|
shadowType = GPUShadowType.Directional; |
|
|
|
shadowType = GPUShadowType.Point; |
|
|
|
shadowType = GPUShadowType.Spot; |
|
|
|
facecount = 1; |
|
|
|
break; |
|
|
|
} |
|
|
|