浏览代码

Small fix on the cascade error message.

/feature-ReflectionProbeFit
Felipe Lira 7 年前
当前提交
a37807cb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs

4
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs


private void SetupShadowSliceTransform(int cascadeIndex, int shadowResolution, Matrix4x4 proj, Matrix4x4 view)
{
if (cascadeIndex >= 4)
if (cascadeIndex >= kMaxCascades)
Debug.LogError(String.Format("{0} is an invalid cascade index. Maximum of 4 cascades"));
Debug.LogError(String.Format("{0} is an invalid cascade index. Maximum of {1} cascades", cascadeIndex, kMaxCascades));
return;
}

正在加载...
取消
保存