LOL sadly, I'm back already. I just can't get this code to work. The bit I really want is the 4th picture where a wave goes along the body of the fish. It's an incredible look. I have the code working, it just doesn't perform as expected...
shader_type spatial;
uniform float TIME;
uniform float time_scale = 3; // + means more speed
uniform float wave = 0.5;
void vertex() {
float time = TIME * time_scale;
float body = (VERTEX.x + 1.0) / 2.0; //for a fish centered at (0, 0) with a length of 2
VERTEX.x += cos(time + body) * wave;
I could be wrong (as usual) but I don't think the earlier bits of code in the tutorial affect this stage. Help me Obi-Wan you're my only hope!