This is going to be related to XE_OPACITY I believe with the MaterialBlock.
Hey There!
Please login and(or) register to see this awesome content today.
1.D3DRS_ALPHATESTENABLE makes tests per pixel for
D3DRS_ALPHAREF and applies
D3DRS_ALPHAFUNC, D3DCMP_GREATEREQUAL
2. when m_nAmount is less than 255, it uses the texturefactor and alphaarg2 as tfactor to modulate and merge those alphas.
If you separate into m_nAmount <255 and m_nAmount == 255 to minimize render state changes, that's a bonus.
It could be an issue with a previously set D3DRS_SRCBLEND and D3DRS_DESTBLEND which isn't used in this code, or can try alpharef of 1 rather than 0, can even disable D3DRS_ALPHATESTENABLE and alpharef and alphafunc to see if that helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.