- Home /
Modify mesh with shader and update collision mesh?
Is it possible to update a collision mesh with when changing a mesh with shaders ?
Comment
Answer by Hoeloe · Feb 09, 2014 at 02:28 PM
I think not. Shaders make a change to a mesh on the GPU, but they only do so part way through the rendering pipeline. It's awkward at best to then send data back into Unity's physics engine. You might be able to do it with compute shaders, which are designed to allow the GPU to execute certain commands and pass data back to the CPU, but not with a normal shader.
Your answer
![](https://koobas.hobune.stream/wayback/20220613132916im_/https://answers.unity.com/themes/thub/images/avi.jpg)