浏览代码

basic example: whoops it was not clearing the depth buffer :)

/main
Aras Pranckevicius 8 年前
当前提交
786fa232
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
      Assets/BasicRenderLoopTutorial/BasicRenderLoop.cs

6
Assets/BasicRenderLoopTutorial/BasicRenderLoop.cs


// per-camera built-in shader variables).
loop.SetupCameraProperties (camera);
// clear depth buffer
var cmd = new CommandBuffer();
cmd.ClearRenderTarget(true, false, Color.black);
loop.ExecuteCommandBuffer(cmd);
cmd.Release();
// Setup global lighting shader variables
SetupLightShaderVariables (cull.visibleLights, loop);

正在加载...
取消
保存