浏览代码

Added unlit pass rendering for opaque objects.

/Add-support-for-light-specular-color-tint
Felipe Lira 7 年前
当前提交
b1356299
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs

1
ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


private void RenderOpaques(ref ScriptableRenderContext context, RendererConfiguration settings)
{
var opaqueDrawSettings = new DrawRendererSettings(m_CurrCamera, m_LitPassName);
opaqueDrawSettings.SetShaderPassName(1, m_UnlitPassName);
opaqueDrawSettings.sorting.flags = SortFlags.CommonOpaque;
opaqueDrawSettings.rendererConfiguration = settings;

正在加载...
取消
保存