What does SetTextureStage(0, D3DTSS_COLORARG2, 0) in DirectX mean?

Posted by Vite Falcon on Game Development See other posts from Game Development or by Vite Falcon
Published on 2011-11-14T21:16:02Z Indexed on 2011/11/15 2:13 UTC
Read the original article Hit count: 329

Filed under:
|

I'm trying to convert some DirectX code to Ogre3D and was wondering what the following translates to:

pDev->SetTextureStage(0, D3DTSS_TEXCOORDINDEX, 0)
pDev->SetTextureStage(0, D3DTSS_COLORARG1,     D3DTA_TEXTURE)
pDev->SetTextureStage(0, D3DTSS_COLOROP,       D3DTOP_MODULATE)
pDev->SetTextureStage(0, D3DTSS_COLORARG2,     0)

What is the modulation operation happening here? Is the texture getting modulated with the background? Or is it getting zeroed?

I've tried searching for what this means and unfortunately I haven't come across anything meaningful. Any help to shed light on this matter will be much appreciated.

© Game Development or respective owner

Related posts about directx

Related posts about textures