浏览代码

Fixed out of bounds access.

/main
uygar 7 年前
当前提交
62637d1f
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs

6
ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs


sp.Set( m_TmpSplits[i] );
payload[payloadOffset] = sp;
}
sp.Set( (m_TmpSplits[second] - m_TmpSplits[first]).normalized );
if( second != k_MaxCascadesInShader )
sp.Set( (m_TmpSplits[second] - m_TmpSplits[first]).normalized );
else
sp.Set( 0.0f, 0.0f, 0.0f, 0.0f );
payload[payloadOffset] = sp;
payloadOffset++;

正在加载...
取消
保存