The default renderscript looks like this, drawing the ‘gui’ and the ‘text’ predicate within the scope of having stencil test enable:
render.enable_state(render.STATE_STENCIL_TEST)
render.draw(self.gui_pred)
render.draw(self.text_pred)
render.disable_state(render.STATE_STENCIL_TEST)
The text render uses the system font which have the ‘text’ predicate. You can create another material for the system font with another predicate (for example ‘render_text’) and render that (predicate) after you disable the stencil test.
The fact that the stencil test effects this text predicate in this case is unfortunate and a special case / buger scripts.
I’ve created DEF-2562 and we’ll see how we approach this later on.