[vlc-devel] Direct3D Alpha Testing

Felix Abecassis felix.abecassis at gmail.com
Thu Feb 13 18:07:04 CET 2014

Hi everybody,

Does someone know why we have the following code in direct3d.c
if (sys->d3dcaps.AlphaCmpCaps & D3DPCMPCAPS_GREATER) {
    IDirect3DDevice9_SetRenderState(d3ddev, D3DRS_ALPHATESTENABLE,TRUE);
    IDirect3DDevice9_SetRenderState(d3ddev, D3DRS_ALPHAREF, 0x00);
    IDirect3DDevice9_SetRenderState(d3ddev, D3DRS_ALPHAFUNC,D3DCMP_GREATER);

Related documentation entries:

With the statements above, all pixels with an alpha of 0 will be discarded.
I've found some shaders where the output alpha is set to 0 and thus using
this shader will cause the display to be all black

Any ideas?


Félix Abecassis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140213/2929d3f4/attachment.html>

More information about the vlc-devel mailing list