浏览代码

Add a NULL check to RebuildSkyMatrices()

/main
Evgenii Golubev 7 年前
当前提交
92230900
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs

2
Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs


void RebuildSkyMatrices(float nearPlane, float farPlane)
{
if (!m_SkySettings) return;
Matrix4x4 cubeProj = Matrix4x4.Perspective(90.0f, 1.0f, nearPlane, farPlane);
// Ref: https://msdn.microsoft.com/en-us/library/windows/desktop/bb204881(v=vs.85).aspx

正在加载...
取消
保存