浏览代码

Fix ordering or transparent objects do they match builtin

/classicDeferredMobile
Filip Iliescu 7 年前
当前提交
0f7360c1
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 8
      Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/ClassicDeferredPipeline.cs

8
Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/ClassicDeferredPipeline.cs


var settings = new DrawRendererSettings(cull, camera, new ShaderPassName("ForwardSinglePass"))
{
sorting = { flags = SortFlags.CommonOpaque }
sorting = { flags = opaquesOnly ? SortFlags.CommonOpaque : SortFlags.CommonTransparent }
if (opaquesOnly) settings.inputFilter.SetQueuesOpaque();
else settings.inputFilter.SetQueuesTransparent();
if (opaquesOnly)
settings.inputFilter.SetQueuesOpaque();
else
settings.inputFilter.SetQueuesTransparent();
loop.DrawRenderers(ref settings);
}

正在加载...
取消
保存