浏览代码

Fixed HDRenderPipeline SkyExport to use Blit w/ scale API (so that the output texture is not upside down)

/RenderPassXR_Sandbox
Julien Ignace 7 年前
当前提交
d51497b8
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs

5
Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs


// Flip texture.
// Temporarily disabled until proper API reaches trunk
//Graphics.Blit(temp, tempRT, new Vector2(1.0f, -1.0f), new Vector2(0.0f, 0.0f));
Graphics.Blit(temp, tempRT);
Graphics.Blit(temp, tempRT, new Vector2(1.0f, -1.0f), new Vector2(0.0f, 0.0f));
result.ReadPixels(new Rect(0, 0, resolution * 6, resolution), 0, 0);
result.Apply();

正在加载...
取消
保存