I wanted to copy the nice vine texture and the corresponding shader from L3thals lake map respectively from Socks POM map. Everything looks just fine in the editor. However, it doesn't work during the game (texture is not translucent).
most likely, I have managed to introduce a major brain fart in the shader code that all the smart people here see immediately
- Code: Select all
textures/wq3breli_plant/plant_vine06
{
qer_editorimage textures/wq3breli_plant/plant_vine06.tga
q3map_backShader textures/wq3breli_plant/plant_vine06_back
q3map_vertexScale 2
qer_alphafunc greater 0.5
surfaceparm alphashadow
surfaceparm trans
surfaceparm nonsolid
surfaceparm nomarks
qer_trans 0.99
{
map textures/wq3breli_plant/plant_vine06.tga
rgbGen vertex
depthWrite
alphaFunc GE128
}
}
textures/wq3breli_plant/plant_vine06_back
{
surfaceparm trans
surfaceparm nonsolid
surfaceparm nomarks
{
map textures/wq3breli_plant/plant_vine06.tga
rgbGen const ( 0.2 0.2 0.2 )
alphaFunc GE128
}
}