Contact Info

Glowing Signs Shader

Glowing
Signs

Moving Cars Shader

Moving
Cars

12th Man Flag Shader

12th Man
Flag

Metal Shader

Corrugated
Metal

Wattle and Daub Shader
Tree Trunk Shader
Water Shader Rippling Water
Flame Shader Flickering Flame
Water Shader Step by step tutorial - 1 - 2 - 3 - 4

STEP 3: Diagonal Waves

 

float wave_macro = getWave(s, macro_freq, phase, macro_chop, p);

float wave_micro = getWave(s*t, macro_freq, phase, micro_chop, p);

hump = wave_macro + wave_micro;
P = P - n * hump * Km;
N = calculatenormal(P);

A second set of waves added, this time moving diagonally from the bottom corner.

< PREV NEXT >