Original Post
🔒 Locked
Alpha Blending
Advertisement
write a software one.
G''day!
I think you''re going to have to provide a bit more information if you want people to help.
Stay Casual,
Ken
Drunken Hyena
I think you''re going to have to provide a bit more information if you want people to help.
Stay Casual,
Ken
Drunke
Are we talking Direct3D or OpenGL here? And which version?
In Direct3D8 this code-
g_pD3DDevice->SetRenderState ( D3DRS_ALPHABLENDENABLE, TRUE );
g_pD3DDevice->SetRenderState ( D3DRS_SRCBLEND, D3DBLEND_SRCCOLOR );
g_pD3DDevice->SetRenderState ( D3DRS_DESTBLEND, D3DBLEND_DESTCOLOR );
Will turn on alpha blending.
In Direct3D8 this code-
g_pD3DDevice->SetRenderState ( D3DRS_ALPHABLENDENABLE, TRUE );
g_pD3DDevice->SetRenderState ( D3DRS_SRCBLEND, D3DBLEND_SRCCOLOR );
g_pD3DDevice->SetRenderState ( D3DRS_DESTBLEND, D3DBLEND_DESTCOLOR );
Will turn on alpha blending.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement