Fixed first instance in MDI call being wrong
This commit is contained in:
parent
a2311a473e
commit
d9582cd0bd
|
@ -270,7 +270,7 @@ namespace SHADE
|
|||
.instanceCount = static_cast<uint32_t>(subBatch.Renderables.size()),
|
||||
.firstIndex = subBatch.Mesh->FirstIndex,
|
||||
.vertexOffset = subBatch.Mesh->FirstVertex,
|
||||
.firstInstance = nextInstanceIndex
|
||||
.firstInstance = nextInstanceIndex++
|
||||
});
|
||||
|
||||
// Fill in buffers (CPU)
|
||||
|
|
Loading…
Reference in New Issue