Kyle_KatarnJedi
09-21-2003, 03:52 PM
In my map I have 2 custom shaders, the sky works fine, but my water doesnt seem to. Here is the code.... I get the texture in Raident but no whitebox around it...
textures/jc2/sky_light
{
qer_editorimage textures/skies/sky.tga
q3map_skylight 350
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc
q3map_nolightmap
skyParms textures/jc2/sky 512 -
}
textures/jc2/water
{
qer_editorimage textures/jc2/water
surfaceparm metalsteps
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm water
surfaceparm fog
surfaceparm trans
q3map_material Water
q3map_nolightmap
q3map_onlyvertexlighting
fogparms ( 0.113725 0.137255 0.380392 ) 1024.0
{
map textures/jc2/water
blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
rgbGen exactVertex
alphaGen const 0.2
tcMod scroll 0.005 0.01
tcMod turb 1 0.03 0 0.3
}
{
map textures/jc2/water
blendFunc GL_ONE GL_SRC_ALPHA
rgbGen exactVertex
alphaGen const 0.2
tcMod scroll -0.005 -0.01
tcMod turb 0 -0.03 0.5 -0.3
}
}
Perhaps you guys can help me :) It seems to be soild and not water....
textures/jc2/sky_light
{
qer_editorimage textures/skies/sky.tga
q3map_skylight 350
surfaceparm sky
surfaceparm noimpact
surfaceparm nomarks
notc
q3map_nolightmap
skyParms textures/jc2/sky 512 -
}
textures/jc2/water
{
qer_editorimage textures/jc2/water
surfaceparm metalsteps
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm water
surfaceparm fog
surfaceparm trans
q3map_material Water
q3map_nolightmap
q3map_onlyvertexlighting
fogparms ( 0.113725 0.137255 0.380392 ) 1024.0
{
map textures/jc2/water
blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
rgbGen exactVertex
alphaGen const 0.2
tcMod scroll 0.005 0.01
tcMod turb 1 0.03 0 0.3
}
{
map textures/jc2/water
blendFunc GL_ONE GL_SRC_ALPHA
rgbGen exactVertex
alphaGen const 0.2
tcMod scroll -0.005 -0.01
tcMod turb 0 -0.03 0.5 -0.3
}
}
Perhaps you guys can help me :) It seems to be soild and not water....