浏览代码

Fix issue clearing issue with multiple cameras

/main
Felipe Lira 7 年前
当前提交
ef05aed7
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      com.unity.render-pipelines.lightweight/LWRP/Passes/ForwardLitPass.cs

3
com.unity.render-pipelines.lightweight/LWRP/Passes/ForwardLitPass.cs


// We need to handle viewport on a RT. We do it by rendering a fullscreen quad + viewport
if (colorAttachmentHandle != -1 && !cameraData.isDefaultViewport)
{
SetRenderTarget(cmd, BuiltinRenderTextureType.CameraTarget, RenderBufferLoadAction.DontCare, RenderBufferStoreAction.Store, ClearFlag.All, Color.black);
SetRenderTarget(cmd, BuiltinRenderTextureType.CameraTarget, RenderBufferLoadAction.DontCare, RenderBufferStoreAction.Store, ClearFlag.None, Color.black);
}
else
{

正在加载...
取消
保存