[SOLVED] How can I move a vertex with shader chunks

I am looking for a way to transform a mesh according to a texture, as I do in Unity with the addition vertex function of a surface shader. I am trying to use shader chunks to modify the vertex shader of the standard material, but I do not know which chunk or variable I should use.
I do not need to take animation and rigging into consideration.
Thanks for your attention!

Hi @Aryous,

Usually the chunk to modify for controlling the vertex position is the transformVS:

You can modify either the localPos or the resulting dPositionW.

Check these examples on how to get started with shader chunks:
https://developer.playcanvas.com/en/tutorials/tutorial-plasma-shader-chunk/
https://developer.playcanvas.com/en/tutorials/warp-a-sprite-with-glsl/

1 Like

This is helpful. Thanks a lot!