TothBenoit 7 months ago
parent
commit
e054cfb7a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/prim/Instanced.hx

+ 1 - 1
h3d/prim/Instanced.hx

@@ -65,7 +65,7 @@ class Instanced extends Primitive {
 			commands.setCommand(0, 0, 0);
 			return;
 		}
-		commands.setCommand(count, primitive.getMaterialIndexStart(material, lod), primitive.getMaterialIndexCount(material, lod));
+		commands.setCommand(count, primitive.getMaterialIndexCount(material, lod), primitive.getMaterialIndexStart(material, lod));
 	}
 
 	override function render( engine : h3d.Engine ) {