I’m trying to make a texture that consists of multiple layers and is half transparent.
Here are my results so far:
There are 3 layers with bars that are moving at different speeds and on top of that is a layer that should slowly make them transparent. But at the moment it just makes half the texture white.
So the question is how do I make the bars slowly disappear as they move upwards?
shader:
textures/stealth4/cyanbarvert
{
cull none
noPicmip
surfaceparm trans
deformVertexes wave 160 sin 0 3 0 0.3
q3map_tessSize 384
{
map textures/stealth4/23bar1.tga
blendFunc GL_SRC_ALPHA GL_ONE
rgbGen const ( 0.0 0.78 1.0 )
tcmod scale 1 1
tcMod scroll 0 0.3
}
{
map textures/stealth4/23bar2.tga
blendFunc GL_SRC_ALPHA GL_ONE
rgbGen const ( 0.0 0.78 1.0 )
tcmod scale 1 1
tcMod scroll 0 0.2
}
{
map textures/stealth4/23bar3.tga
blendFunc GL_SRC_ALPHA GL_ONE
//rgbgen wave sin 0.5 1 0 0.2
rgbGen const ( 0.0 0.78 1.0 )
tcmod scale 1 1
tcMod scroll 0 0.4
}
{
map textures/stealth4/trans1.tga
blendFunc GL_SRC_ALPHA GL_ONE
//rgbgen wave sin 0.5 1 0 0.2
}
}
EDIT: attached the files so anybody who’s interested can play around with it.