I currently have a math C# class that moves around a vertex visually. I want to move the visual part into a shader graph but keep the calculation in C# as a mesh collider depends on it.
I read that there's no way for C# to read from shader but it could pass data to it.
Is there a way to send data per vertex into a shader graph?
The only solution I can think of is having the script draw onto a sampled texture. Is there any better way?