This is a simple shader for Unity to bend a mesh with a sine function. Useful when you want to simulate the bending caused due to a force being applied to an object. The sine function is being plotted along the Z axis, if you want to bend along the X axis edit line 36:
float4 result = (float4(0.0 , ( sin( ( _OffsetSin + ( vertexPos.x * _Frequency ) ) ) * _Amplitude ) , 0.0 , 0.0));
The more vertices your mesh has along the axis you want to bend the smoother it will look. Tested with Unity 2018.2
Hi, what kind of texture work this shader?
Because I'm trying with my textures and I only get a solid color :(
But if I put it in a standard shader it works.
This is my texture
![image](https://user-images.githubusercontent.com/104410021/209283285-7174c51c-fe55-4e83-8795-915612289173.png)
Thank you