浏览代码

Enabled Dynamic batching.

/main
Felipe Lira 7 年前
当前提交
e7451f17
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Passes/ScriptableRenderPass.cs

1
ScriptableRenderPipeline/LightweightPipeline/LWRP/Passes/ScriptableRenderPass.cs


DrawRendererSettings settings = new DrawRendererSettings(camera, m_ShaderPassNames[0]);
for (int i = 1; i < m_ShaderPassNames.Count; ++i)
settings.SetShaderPassName(i, m_ShaderPassNames[i]);
settings.flags = DrawRendererFlags.EnableDynamicBatching | DrawRendererFlags.EnableInstancing;
settings.sorting.flags = sortFlags;
settings.rendererConfiguration = rendererConfiguration;
return settings;

正在加载...
取消
保存