浏览代码

Fix ordering or transparent objects do they match builtin

/main
Filip Iliescu 8 年前
当前提交
314d042f
共有 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);
}

正在加载...
取消
保存