I would like to have a texture that acts as a background and have another texture to lay over top. For the top texture, I want to have specific areas to by invisible while others to be fully opaque and fullbright.
I've tried blendfunc add but some of the background texture is visible in the top one. What's the best way to do this? Alpha channels?
Here are two test files I'm using, one background (blue.tga) and the overlay (blue_on.tga). My goal is to have "blue_on.tga" to lay over blue, I want the black to be invisible and the green square to be 100% opaque and fullbright.
http://www.killpixel.com/kpcn/shaders/
This got me close, but still no dice.
Code: Select all
textures/tech/blue
{
q3map_lightimage textures/tech/blue_on.tga
surfaceparm nodlight
surfaceparm nomarks
{
map textures/tech/blue.tga
}
{
map $lightmap
blendFunc filter
}
{
map textures/tech/blue_on.tga
blendfunc add
}
}
