浏览代码

Merge pull request #1335 from Unity-Technologies/revert-1331-shadows-fixes

Revert "Fixed handling unknown GPUShadowTypes in the shadow manager."
/main
GitHub 6 年前
当前提交
760ff8d0
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 7
      ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs

7
ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs


int requestIdx = shadowRequests[i];
VisibleLight vl = lights[requestIdx];
int facecount = 0;
GPUShadowType shadowType = GetShadowLightType( vl.light );
GPUShadowType shadowType = GPUShadowType.Point;
bool add = shadowType != GPUShadowType.Unknown && (distToCam < asd.shadowFadeDistance || vl.lightType == LightType.Directional) && m_ShadowSettings.enabled;
bool add = (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;
}

正在加载...
取消
保存