浏览代码

fptl: fixed broken rendering on scene property change

/main
vlad-andreev 8 年前
当前提交
cb101a89
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs

5
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


m_DeferredMaterial.SetBuffer("g_vLightList", lightList);
m_DeferredReflectionMaterial.SetBuffer("g_vLightList", lightList);
m_DeferredMaterial.SetBuffer("g_vLightData", m_lightDataBuffer);
m_DeferredReflectionMaterial.SetBuffer("g_vLightData", m_lightDataBuffer);
cmd.name = "DoTiledDeferredLighting";
//cmd.SetRenderTarget(new RenderTargetIdentifier(kGBufferEmission), new RenderTargetIdentifier(kGBufferZ));

var cmd = new CommandBuffer();
cmd.name = "Build light list";
cmd.SetComputeIntParam(m_BuildScreenAABBShader, "g_iNrVisibLights", numLights);
SetMatrixCS(cmd, m_BuildScreenAABBShader, "g_mProjection", projh);
SetMatrixCS(cmd, m_BuildScreenAABBShader, "g_mInvProjection", invProjh);

正在加载...
取消
保存