Version: 2022.3
public void DrawRenderer (Renderer renderer, Material material, int submeshIndex= 0, int shaderPass= -1);

参数

renderer 要绘制的渲染器。
material 要使用的材质。
submeshIndex 要渲染网格的哪个子集。
shaderPass 要使用着色器的哪个通道(默认为 -1,表示渲染所有通道)。

描述

添加“绘制渲染器”命令。

Note that the rendered mesh will not have any lighting related shader data (light colors, directions, shadows, light and reflection probes etc.) set up. If the shader used by the material uses any lighting related variables, the results are undefined.

另请参阅:DrawMesh