mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
fix alphatest init
This commit is contained in:
parent
97d4e25f9d
commit
e637ad6586
@ -805,7 +805,7 @@ dx_init( void) {
|
||||
_alpha_func = D3DCMP_ALWAYS;
|
||||
_alpha_func_refval = 1.0f;
|
||||
scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHAFUNC, _alpha_func);
|
||||
scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHAREF, _alpha_func_refval);
|
||||
scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHAREF, (_alpha_func_refval*255.0f));
|
||||
_alpha_test_enabled = false;
|
||||
scrn.pD3DDevice->SetRenderState(D3DRENDERSTATE_ALPHATESTENABLE, _alpha_test_enabled);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user