PDA

View Full Version : multi-texturing



Chan Min
05-02-2009, 08:12 AM
SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE);
SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_DIFFUSE);
SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_BLENDTEXTUREALPHA);


anyone knows how to write these three lines in opengl?

Chan Min
05-02-2009, 09:44 AM
sob sob :'( .. no answer ?

remdul
05-02-2009, 12:50 PM
Please don't crosspost.

Looks like you want to cross-fade textures? You can do that with multipass + blending, or use GLSL.

Chan Min
05-02-2009, 01:49 PM
sorry, I thought I got no answer because I posted inside unrelated sub forum.