
Controlable
Water Waves
|
Copyright info |
|
All
code in this tutorial is protected by the [GPL License]. |
|
Tutorial by: GGodis |
||||||||||||||||
|
Mailto: ggodis@yahoo.com This tut is about
how to make controlable water waves For this tut we have to modify three
files, that would be : "gl_warp.c, gl_local.h and gl_main.c" First open up
"gl_local.h", go to the line that says :
And paste this
below:
Ok, in this
file we are done. Now open "gl_main.c" Go to the line that looks
like this :
Paste this
below it :
And now go to
the function caled : void R_Register( void ) Find this line :
And paste this
below it :
Ok, this file
is done !
Now in the same
function go to line : "qglTexCoord2f (s, t);" And at the botom of
this line paste the water wave code :
Thats all !
Enjoy the water waves. |
Tutorial Originally found at: