浏览代码

fix fwd lighting when async shadow order is enabled

fix fwd lighting when async shadow order is enabled
/Branch_Batching2
mmikk 7 年前
当前提交
2321352b
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      Assets/ScriptableRenderPipeline/fptl/FptlLighting.cs

6
Assets/ScriptableRenderPipeline/fptl/FptlLighting.cs


// render shadow maps (for mobile shadow map rendering should happen before we render g-buffer).
// on GCN it needs to be after to leverage async compute since we need the depth-buffer for optimal light list building.
if(k_UseAsyncCompute) RenderShadowMaps(cullResults, loop);
if(k_UseAsyncCompute)
{
RenderShadowMaps(cullResults, loop);
loop.SetupCameraProperties(camera);
}
// Push all global params
var numDirLights = UpdateDirectionalLights(camera, cullResults.visibleLights);

正在加载...
取消
保存