Version: 2017.2
Experimental: this API is experimental and might be changed or removed in the future.

ScriptableRenderContext.DrawRenderers

切换到手册
public void DrawRenderers (ref Experimental.Rendering.DrawRendererSettings settings);
public void DrawRenderers (ref Experimental.Rendering.DrawRendererSettings settings, Experimental.Rendering.RenderStateBlock stateBlock);
public void DrawRenderers (ref Experimental.Rendering.DrawRendererSettings settings, List<RenderStateMapping> stateMap);

参数

settings Specifies which set of visible objects to draw, and how to draw them.
stateBlock 指定要重载渲染状态的哪些部分。
stateMap 指定要针对特定渲染类型重载渲染状态的哪些部分。

描述

绘制可见对象的子集。

如果提供状态块,则将针对在函数调用期间绘制的所有对象重载渲染状态。如果提供状态图,则将针对以下对象重载渲染状态:其中子着色器的 RenderType 与图中的某个值匹配。如果有多个映射匹配,则使用第一个。“renderType”设置为“null”的映射与所有值都匹配。

See Also: CullResults, DrawRendererSettings, RenderStateBlock, RenderStateMapping.