浏览代码

Merge pull request #1242 from Unity-Technologies/fix/BufferPyramid2

Fixed DepthPyramid computation
/main
GitHub 6 年前
当前提交
3b055ddf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipelineResources/BufferPyramidProcessor.cs

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipelineResources/BufferPyramidProcessor.cs


cmd.SetComputeTextureParam(m_DepthPyramidCS, kernel, _Result, dest);
cmd.SetComputeVectorParam(m_DepthPyramidCS, _SrcSize, new Vector4(
srcWorkMip.width, srcWorkMip.height,
(1.0f / srcWorkMip.width) * scale.x, (1.0f / srcWorkMip.height) * scale.y)
(1.0f / srcMip.width) * scale.x, (1.0f / srcMip.height) * scale.y)
);
cmd.DispatchCompute(

正在加载...
取消
保存