hi,
yeah that has been explained in topic that its link has been posted above,
but ill write here what shader i use in my map (Watah - water map ;p):
its just:
textures/watah_misc/woda
{
qer_editorimage textures/watah_misc/xd.jpg
qer_trans .5
q3map_lightimage textures/watah_misc/xd.jpg
// q3map_surfacelight 50
q3map_globaltexture
surfaceparm trans
surfaceparm nonsolid
surfaceparm water
cull disable
deformVertexes wave 64 sin .25 .25 0 .5
{
map textures/watah_misc/xd.jpg
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .5 .5
tcmod scroll .025 .01
}
{
map textures/watah_misc/xd.jpg
blendFunc GL_dst_color GL_one
tcmod scale -.5 -.5
tcmod scroll .025 .025
}
{
map $lightmap
blendFunc GL_dst_color GL_zero
rgbgen identity
}
}
where watah_misc is folder for my misc textures. xd is just water texture from gloom2b2. ofc you have to replace my texture filename, paths etc.
it gives a very nice water effect (water's surface is moving).
ah and theres commented line:
// q3map_surfacelight 50
uncomment it (remove //) and youll get water that emites light ;p
hope it helps
EDIT: ah, and ''woda'' - its polish word - it means ''water'' ;p