Stenciling is working, however, if you change stencilFunc to use 0 as a ref value instead of 1 it does not have the opposite effect, it just renders the background. Weird.