Ok, ok, this is a real pain in the ass. I've got a four-step shader and it just isn't working out the way I predicted. Here are two shots of it in-game, illustrating the problem:
shot 1 and
shot 2
See how, in the second shot, the "words" start getting alpha-added again over the "back" of the bottom? Here's my shader code:
Code:
textures/roger/round_ad
{
surfaceparm nomarks
surfaceparm nonsolid
q3map_nolightmap
q3map_onlyvertexlighting
cull disable
{
map textures/roger/round_ad
blendFunc GL_ONE GL_ONE
tcMod scroll 0.3 0
}
{
map textures/roger/text_1
blendFunc GL_ONE GL_ONE
tcMod scroll 0 -0.1
}
{
map textures/roger/text_1_alpha
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
detail
}
}
and
here is a shot that shows what the various images for the different steps are.
Can anybody tell me what I need to do to fix this shader?