mesh | @param mesh Mesh, который будет нарисован. |
submeshIndex | @param submeshIndex Какое подмножество меша будет нарисовано. Это применимо только для мешей, состоящих из нескольких материалов. |
material | @param material Используемый Material. |
bounds | The bounding volume surrounding the instances you intend to draw. |
count | The number of instances to be drawn. |
properties | Additional material properties to apply. See MaterialPropertyBlock. |
castShadows | Should the meshes cast shadows? |
receiveShadows | Should the meshes receive shadows? |
layer | @param layer Используемый Слой. |
camera | If null (default), the mesh will be drawn in all cameras. Otherwise it will be drawn in the given camera only. |
lightProbeUsage | LightProbeUsage for the instances. |
Draw the same mesh multiple times using GPU instancing. This is similar to Graphics.DrawMeshInstancedIndirect, except when the instance count is known from script, it can be supplied directly using this method, rather than via a ComputeBuffer.
To render the instances with light probes, provide the light probe data via the MaterialPropertyBlock and specify lightProbeUsage
with LightProbeUsage.CustomProvided. Check LightProbes.CalculateInterpolatedLightAndOcclusionProbes for the details.