| 84 | /// <param name="perInstanceRandom">The random per-instance value (normalized to range 0-1).</param> |
| 85 | /// <param name="sortOrder">Object sorting key.</param> |
| 86 | API_FUNCTION() void Draw(API_PARAM(Ref) const RenderContext& renderContext, MaterialBase* material, API_PARAM(Ref) const Matrix& world, StaticFlags flags = StaticFlags::None, bool receiveDecals = true, DrawPass drawModes = DrawPass::Default, float perInstanceRandom = 0.0f, int8 sortOrder = 0) const |
| 87 | { |
| 88 | for (int32 i = 0; i < Meshes.Count(); i++) |
| 89 | Meshes.Get()[i].Draw(renderContext, material, world, flags, receiveDecals, drawModes, perInstanceRandom, sortOrder); |
| 90 | } |
| 91 | |
| 92 | /// <summary> |
| 93 | /// Draws all the meshes from the model LOD. |