Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Change compute buffer for a set of objects

$
0
0
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

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>