浏览代码

Reset extracted camera properties

After we call SetupCameraProperties, we extract some state from the camera to use in SRP code.  We want to reset that extracted state when we shouldn't be using it.
/vr_sandbox
Robert Srinivasiah 7 年前
当前提交
da530d20
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      Assets/LowEndMobilePipeline/LowEndMobilePipeline.cs

2
Assets/LowEndMobilePipeline/LowEndMobilePipeline.cs


foreach (Camera camera in cameras)
{
context.ResetCameraProperties();
CullingParameters cullingParameters;
if (!CullResults.GetCullingParameters(camera, out cullingParameters))

}
context.Submit();
context.ResetCameraProperties();
Shader.globalRenderPipeline = prevPipe;
}

正在加载...
取消
保存