Hiya. Can anyone give the source for a program that works on the Pi and uses a stencil buffer? (Or, at least, the relevant bits of code.)
PeterO?
I compiled the Stencil_Test example program associated 'The OpenGL ES 2.0 Programming Guide' and just got a flickery transparent rectangle... unsurprisingly.
I asked for an 8-bit alpha channel... and got a flickery green rectangle.
I gather from the source code that the result should be red, green, blue and yellow, according to stencil buffer values. (I don't know why it's flickering either.)
I tried using a 24-bit depth buffer instead of 8-bit. No difference.
(96 bits per pixel? That would have been a fevered dream when I started graphics programming!)