Simple Waving Shader (help)

Let’s say i have a simple icosphere, and i want to slightly move its vertices so it seems like it is animated.

I’ve trying doing it manually adjusting the vertices, but i’ve gotten nowhere.

I heard this is doable with a shader - could anyone brighten me on this topic? I’ve found many examples but none included source code so i could see how they were built.

-NoobStudios

Yes, this is doable using a vertex-shader. Have a look at these shader examples, particularly to “Moving vertices along their normals makes a fat soldier”. This example modifies the vertex positions. Then, in order to animate the positions like waves, you would need to change the positions in time using the sin function with a time parameter. You can send the time to the shader as a global parameter.

Be warned, that shader is an advanced topic and that it requires a solid understanding of the graphics pipeline and computer graphics in general.