Shader problem
Posted: Sun Jul 31, 2011 7:16 pm
Hi!
I have a problem with shaders.See picture - It seems like falling water and watersplash is influenced by water lightmap stage, but both (falling water and splash) are different brushes and shaders. I can't solve, why:(

and waterfall shader:
Thank you.
I have a problem with shaders.See picture - It seems like falling water and watersplash is influenced by water lightmap stage, but both (falling water and splash) are different brushes and shaders. I can't solve, why:(

Code: Select all
textures/noruen_penumbra/PuWaterSteady
{
qer_editorimage textures/noruen_penumbra/PuWater1.tga
qer_trans 0.9
q3map_globaltexture
surfaceparm trans
surfaceparm nomarks
surfaceparm water
cull front
{
map $lightmap
tcGen environment
//tcMod scale 0.1 0.1
rgbGen const ( 0.25 0.25 0.25 )
blendFunc gl_one gl_one
}
{
map textures/noruen_penumbra/PuWater2.tga
tcmod scale 2.25 0.75
tcmod scroll 0.1 0.15
rgbGen wave sin 1 0.1 0.5 0.75 //func, amplitude, phase, freq
blendFunc add
}
{
map textures/noruen_penumbra/PuWater2.tga
tcmod scale -1.5 0.75
tcmod scroll -0.1 -0.15
rgbGen wave sin 1 0.1 0 0.75 //func, amplitude, phase, freq
blendFunc add
}
{
map $lightmap
blendFunc filter
rgbGen identity
}
}
Code: Select all
textures/noruen_penumbra/PuWaterFlow //Falling water
{
qer_editorimage textures/noruen_penumbra/PuWaterFlow.tga
surfaceparm trans
surfaceparm nonsolid
surfaceparm nomarks
cull disable
deformVertexes autosprite2
{
map textures/noruen_penumbra/PuWaterFlow.tga
tcmod scale 0.5 1
tcmod scroll 3 0
rgbGen const ( 0.1 0.1 0.1 )
blendFunc add
}
{
map textures/noruen_penumbra/PuWaterFlow2.tga
tcmod scale 0.75 1
tcmod scroll 3.6 0
rgbGen const ( 0.1 0.1 0.1 )
blendFunc add
}
}