I love to play around in amplify shader and I've been trying to learn how to make my own gradient shader.
I've made some progress but I'm stuck on a particular concept:
![Image](https://preview.ibb.co/da6Faw/shader_example_02.jpg)
![Image](https://preview.ibb.co/fUtdvw/shader_example_01.jpg)
I've managed to map the gradient in one direction using the world normal direction but I cannot figure out how to evenly map the gradient to the scale of the mesh.
I'm currently using the vertex position.
Any help would be much appreciated,
Kind Regards,
K