Deform a model with a Bezier curve

Use the mathematical tool "bezier curve" to deform a model in a shader.

Warning : This way to do it's quite cumbersome!

Shader source :

https://pastebin.com/ZsCVUGYA

 

More information :

This shader doesn't work well with some of the Unity's primitives (cube, quad...)

Import your own models.