浏览代码

Fix the vertical SSS pass

/RenderPassXR_Sandbox
sebastienlagarde 8 年前
当前提交
9f8e113e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

1
Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


m_FilterSubsurfaceScattering.SetVectorArray("_HalfRcpWeightedVariances", sssParameters.halfRcpWeightedVariances);
cmd.SetGlobalTexture("_IrradianceSource", m_CameraSubsurfaceBufferRT);
Utilities.DrawFullScreen(cmd, m_FilterSubsurfaceScattering, hdCamera, m_CameraFilteringBufferRT, m_CameraDepthStencilBufferRT);
context.ExecuteCommandBuffer(cmd); // Does not work if I don't execute the command buffer in between the draws.
// Perform the horizontal SSS filtering pass, and combine diffuse and specular lighting.
m_FilterAndCombineSubsurfaceScattering.SetFloatArray("_WorldScales", sssParameters.worldScales);

正在加载...
取消
保存