Version: 2022.3
言語: 日本語
public void DrawMesh (Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex= 0, int shaderPass= -1, MaterialPropertyBlock properties= null);

パラメーター

mesh 描画するメッシュ
matrix 使用するトランスフォーム(変換)マトリックス
material 使用するマテリアル
submeshIndex レンダリングするメッシュのサブセット
shaderPass 使用するシェーダーのパス (デフォルトは -1 で、すべてのパスをレンダリングします)。
properties Additional Material properties to apply onto the Material just before this Mesh is drawn. See MaterialPropertyBlock.

説明

"Draw Mesh" コマンドをを追加します。

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.

関連項目: DrawRenderer, MaterialPropertyBlock.