Jump to content

Unity: Difference between revisions

22 bytes added ,  8 January 2021
Line 38: Line 38:
Be aware of the limitations of using a single draw call though; transparency can become tricky.
Be aware of the limitations of using a single draw call though; transparency can become tricky.


You can use a compute shader to animate and move the objects instead of using Unity scripts.   
After merging a mesh, you can use a compute shader to animate and move the objects instead of using Unity scripts.   
The compute shader edits a single compute buffer which can be read by your vertex or geometry shader without passing data back to the CPU.
The compute shader edits a single compute buffer which can be read by your vertex or geometry shader without passing data back to the CPU.