浏览代码

Clearing screenspace occlusion texture to avoid Tile LOAD.

/main
Felipe Lira 7 年前
当前提交
50693fe4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightShadowPass.cs

2
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightShadowPass.cs


// stereo functionality, we use the screen-space shadow map as the source (until we have
// a better solution).
// An alternative would be DrawProcedural, but that would require further changes in the shader.
cmd.SetRenderTarget(m_ScreenSpaceShadowmapTexture);
cmd.ClearRenderTarget(true, true, Color.white);
cmd.Blit(m_ScreenSpaceShadowmapTexture, m_ScreenSpaceShadowmapTexture, m_ScreenSpaceShadowsMaterial);
LightweightUtils.StartStereoRendering(camera, ref context, frameRenderingConfiguration);

正在加载...
取消
保存