Hello,
I got a simple water shader applied to a custom 2D
mesh and to a default plane, through a material. I removed the collision to both of them. The plane behaves as expected by "waving", but my mesh just moves up and down, all of it at once.
The project is running on the Standard Pipeline in Unity 2022.3.46, with Shader Graph package.
I can't find the reason as to why they behave differently, does someone know?
#Shader position noise not working on custom mesh(?)
1 messages · Page 1 of 1 (latest)
Your noise is generated based on the UVs, if the UVs are for example constant over all the vertices, you won't get different vertices waving separately
You are right! That was the problem, thanks!
I don't know why it worked before with less vertices, and now that i added more and reimported they aren't there.
Solution is to generate UVs in the imported model in the inspector (it generates them in UV2, maybe it matters for the shader).
Thanks again.