浏览代码

Merge pull request #1843 from Unity-Technologies/FixCameraDarkenSceneViewWhenSelected

Fix sRGB forced into preview camera render
/main
GitHub 6 年前
当前提交
0554e9b7
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 2
      com.unity.render-pipelines.core/CoreRP/Editor/CameraEditorUtils.cs

2
com.unity.render-pipelines.core/CoreRP/Editor/CameraEditorUtils.cs


return;
}
GL.sRGBWrite = QualitySettings.activeColorSpace == ColorSpace.Linear;
GL.sRGBWrite = false;
Graphics.DrawTexture(cameraRect, previewCamera.targetTexture, new Rect(0, 0, 1, 1), 0, 0, 0, 0, GUI.color, GUITextureBlit2SRGBMaterial);
}
}

正在加载...
取消
保存