Transparent water
Posted: Mon Sep 12, 2011 1:37 pm
I have water that appears transparent in Radiant but is opaque in-game. How do I make it transparent in-game?
Code: Select all
textures/urban_terror2/water1
{
qer_editorimage textures/liquids/pool3d_3e.tga
qer_trans .5
q3map_globaltexture
surfaceparm trans
surfaceparm nonsolid
surfaceparm water
cull disable
deformVertexes wave 64 sin .25 .25 0 .5
{
map textures/liquids/pool3d_5e.tga
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .5 .5
tcmod scroll .025 .01
}
{
map textures/liquids/pool3d_3e.tga
blendFunc GL_dst_color GL_one
tcmod scale -.5 -.5
tcmod scroll .025 .025
}
{
map $lightmap
blendFunc GL_dst_color GL_zero
rgbgen identity
}
}
Code: Select all
textures/greatwall/greatwall_water
{
qer_editorimage textures/greatwall/greatwall_water.tga
qer_trans 0.2
surfaceparm alphashadow
surfaceparm lightfilter
surfaceparm nomarks
surfaceparm nonsolid
surfaceparm trans
surfaceparm water
cull disable
{
map textures/greatwall/greatwall_water.tga
blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
tcMod turb 0.0 0.1 1.0 0.1
tcmod scroll 0.01 0.01
}
{
map $lightmap
blendfunc filter
}
}