浏览代码

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

Fixed handling unknown GPUShadowTypes in the shadow manager.
/main
GitHub 7 年前
当前提交
d1233422
共有 1 个文件被更改,包括 2 次插入5 次删除
  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 = 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;
}

正在加载...
取消
保存