浏览代码

Merge pull request #1419 from Unity-Technologies/fix-issue-with-default-camera-enabling-MSAA

Disable allowMSAA on camera to remove warning in inspector
/main
GitHub 7 年前
当前提交
02adf106
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      com.unity.render-pipelines.high-definition/HDRP/Camera/HDAdditionalCameraData.cs

1
com.unity.render-pipelines.high-definition/HDRP/Camera/HDAdditionalCameraData.cs


if (m_camera == null)
return;
m_camera.allowMSAA = false; // We don't use this option in HD (it is legacy MSAA) and it produce a warning in the inspector UI if we let it
m_camera.allowHDR = false;
// Tag as dirty so frameSettings are correctly initialize at next HDRenderPipeline.Render() call

正在加载...
取消
保存