浏览代码

Fixed the clear issue that was causing the RT to be clear before setting the camera.

/vr_sandbox
Felipe Lira 7 年前
当前提交
3ca50804
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 10
      Assets/LowEndMobilePipeline/LowEndMobilePipeline.cs

10
Assets/LowEndMobilePipeline/LowEndMobilePipeline.cs


cullingParameters.shadowDistance = m_ShadowSettings.maxShadowDistance;
CullResults cull = CullResults.Cull(ref cullingParameters, context);
var cmd = new CommandBuffer() {name = "Clear"};
cmd.ClearRenderTarget(true, true, Color.black);
context.ExecuteCommandBuffer(cmd);
cmd.Dispose();
// Render Shadow Map
bool shadowsRendered = RenderShadows(cull, context);

var cmd = new CommandBuffer() { name = "Clear" };
cmd.ClearRenderTarget(true, true, Color.black);
context.ExecuteCommandBuffer(cmd);
cmd.Dispose();
// Setup light and shadow shader constants
SetupLightShaderVariables(cull.visibleLights, context);

正在加载...
取消
保存