浏览代码

Correctly set the depth texture

/main
Evgenii Golubev 8 年前
当前提交
00e0d5f5
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/ProceduralSky/ProceduralSkyRenderer.cs

4
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/ProceduralSky/ProceduralSkyRenderer.cs


SetUniforms(builtinParams, proceduralSkyParams);
var cmd = new CommandBuffer { name = "" };
if (builtinParams.depthBuffer != BuiltinSkyParameters.invalidRTI)
{
cmd.SetGlobalTexture("_CameraDepthTexture", builtinParams.depthBuffer);
}
cmd.DrawMesh(builtinParams.skyMesh, Matrix4x4.identity, m_ProceduralSkyMaterial);
builtinParams.renderLoop.ExecuteCommandBuffer(cmd);
cmd.Dispose();

正在加载...
取消
保存