I gone through the example of [DrawMeshInstancedIndirect()][1].
This works fine when I want to display a huge amount of objects. Now i want to only update some position of the position buffer shown in the example. The rest of it should still be rendered with the positions as before. I dont want to update the entire buffer.
How would I do that? Is SetConstantBuffer() with a [MaterialPropertyBlock][2] the right approach?
[1]: https://docs.unity3d.com/ScriptReference/Graphics.DrawMeshInstancedIndirect.html
[2]: https://docs.unity3d.com/ScriptReference/MaterialPropertyBlock.html
↧