PDA

View Full Version : Multitexturing & alpha blending



krol
08-18-2003, 01:04 AM
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

Luminous Blue
08-18-2003, 05:05 AM
Hi

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


LB

krol
08-18-2003, 09:55 PM
Thanks. I watched this post and that is the effect I desire, but author uses NV, ARB and ATI extensions - is there any simplification ??