Hm, just to understand that correctly... that call would reject any pixel that does not keep the blue channel to 0, right?
exactly.
Also, it seems as the function masks the function by 0x03, GU_LESS and above are not available when color testing.
good to know !
In fact I was trying to be able to filter a particular color when I have checked this in order to do adaptive blending. My texture used for blending has a back color (the one filtered) & some pixels resulting from
a previous rendering.
The back color has to be blended using add or sub & the pixels different
from back color have to be blended & then the result has to be divided by 2.
So I blend with a GU_FIX,GU_FIX,0xFFFFFF,0xFFFFFF with color filtering on,
so that only my back color is used. Moreover I setup stencil buffer so that
written are are marked.
Then I blend with a GU_FIX,GU_FIX,0x7F7F7F,0x7F7F7F with color filtering off. Stencil buffer allow me to update only what wasn't updated in first pass.
Now if you can guess why I have to do this, you're pretty smart ;-)
it's not a new game....