setStencilCompareFunction

Sets the stencil comparison function (default is A, always).

It's possible to set separate stencil comparison functions; one for front-facing polygons, and one for back-facing polygons. The face parameter determines the comparison function(s) updated by this call.

Parameters

func

Comparison function

face

Which face(s) this applies to