浏览代码

HDRenderPipeline: SkyManager - convert call of GenerateMips to command buffer call

/main
sebastienlagarde 7 年前
当前提交
28a704bc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs

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


// Generate mipmap for our cubemap
Debug.Assert(target.autoGenerateMips == false);
target.GenerateMips();
builtinParams.commandBuffer.GenerateMips(target);
}
private void BlitCubemap(CommandBuffer cmd, Cubemap source, RenderTexture dest)

// Generate mipmap for our cubemap
Debug.Assert(dest.autoGenerateMips == false);
dest.GenerateMips();
cmd.GenerateMips(dest);
}
private void RenderCubemapGGXConvolution(CommandBuffer cmd, BuiltinSkyParameters builtinParams, SkySettings skyParams, Texture input, RenderTexture target)

正在加载...
取消
保存