Skip to main content
GameDev.net gamedev.net
🔒 Locked

Alpha level?

Started by Maverick the divider Apr 23, 2002 at 11:40 AM 0 replies 150+ views
Original Post
Maverick the divider
Maverick the divider
Is it possible to draw any triangle with any texture alpha-transparent by specifying how much transparent it has to be? (no vertex buffer locking) The wisest men say: Keep it simple, stupid
---Quite soon...ICQ: 163187735
Maverick the divider
Maverick the divider
You know, this just came to me )))

pDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TFACTOR);
pDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_TEXTURE);
pDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE);
pDevice->SetTextureStageState(1, D3DTSS_ALPHAOP, D3DTOP_DISABLE);
pDevice->SetRenderState(D3DRS_TEXTUREFACTOR, 0xffffffff);

0xffffffff - experiment men! :D

The wisest men say:
Keep it simple, stupid
---Quite soon...ICQ: 163187735

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.