dest alpha
dest alpha
has anybody tried using dest alpha? it seems it doesnt work for me neither when i'm trying to blend nor when i do a screenshot ( its all set to 0 even if i clear with 0xff). maybe i'm missing some state?
PSP does not support destination alpha. The framebuffer alpha channel is used as stencil buffer bits.
You can however use the clear enable bit to write to destination alpha at least through the primitives vertex color (as is done in sceGuClear to "clear" the stencil bits).
This will render the vertex colors alpha component into the destination stencil/alpha bits (iirc even with the interpolation done by smooth shading). However, this unfortunately still doesn't render texture alpha component.
You can however use the clear enable bit to write to destination alpha at least through the primitives vertex color (as is done in sceGuClear to "clear" the stencil bits).
Code: Select all
sceGuSendCommandi(211, GU_STENCIL_BUFFER_BIT<<8|0x1);
sceGuDrawArray(....);
sceGuSendCommandi(211, 0);
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl