浏览代码

Merge pull request #1164 from Unity-Technologies/hd-target-texture-flip

Fixed Y-flip in HD when a camera is rendering to a RT
/main
GitHub 7 年前
当前提交
55733747
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


context.command = cmd;
context.camera = hdcamera.camera;
context.sourceFormat = RenderTextureFormat.ARGBHalf;
context.flip = true;
context.flip = hdcamera.camera.targetTexture == null;
layer.Render(context);
}

正在加载...
取消
保存