Multitexturing & alpha blending

hello

Here is the problem: I have two textures:

texture 1 (RGB) and texture 2 (RGBA). I want to mix these textures ( GL_ARB_multitexture ) in particular way.

  1. I want to obtain effect where color bits (RGB) of texture 1 are visible only in alpha bits (>0) locations of texture 2 (RGB of texture 2 isn’t important).

  2. I want to obtain effect where color bits (RGB) of texture 1 are replaced by color bits (RGB) of texture 2 but only in alpha bits (>0) locations of texture 2.

thanks for answer.

Krol

Hi

have a look at:
http://www.gamedev.net/community/forums/topic.asp?topic_id=165453

LB

Thanks. I watched this post and that is the effect I desire, but author uses NV, ARB and ATI extensions - is there any simplification ??