how do i make foggy water? what lines do i add o the shader?
here is my shader for my water
//Textures used to
textures/death_by_coffeeeee/river
{
nocompress
qer_editorimage textures/liquids_sd/sea_bright_na.tga
q3map_globaltexture
q3map_foliage models/foliage/splash5.ase 1 64 0.1 2
q3map_foliage models/foliage/splash4.ase 0.8 64 0.1 2
q3map_foliage models/foliage/splash3.ase 0.6 64 0.1 2
q3map_foliage models/foliage/splash2.ase 0.9 64 0.1 2
q3map_foliage models/foliage/splash1.ase 0.7 64 0.1 2
q3map_foliage models/foliage/splash0.ase 0.5 64 0.1 2
surfaceparm trans
surfaceparm water
surfaceparm nomarks
cull disable
nopicmip
waterfogvars ( 0.11 0.13 0.15 ) 200
{
fog on
map textures/liquids_sd/sea_bright_na.tga
blendFunc blend
alphaFunc GE128
depthWrite
rgbgen identity
tcmod scale 0.5 0.5
tcmod scroll 0.8 0
}
}
//For when the river is coverd by something, like a bridge for example
textures/death_by_coffeeeee/river_coverd
{
nocompress
qer_editorimage textures/liquids_sd/sea_bright_na.tga
q3map_globaltexture
surfaceparm trans
surfaceparm water
surfaceparm nomarks
cull disable
nopicmip
waterfogvars ( 0.11 0.13 0.15 ) 200
{
fog on
map textures/liquids_sd/sea_bright_na.tga
blendFunc blend
alphaFunc GE128
depthWrite
rgbgen identity
tcmod scale 0.5 0.5
tcmod scroll 0.8 0
}
}
there are 2 parrts there, one for when the water is being hit by rain and one when it isnt, help me

