Skip to content

StencilEmulation.Pass

enum StencilEmulation.Pass
Package: dev.joid.lib.bridge.render.state · Module: core · Source: StencilEmulation.java

Which stencil code a translated fragment stage carries.

stencil(...) of GlslShaderTranslator takes it to add the code of StencilEmulation to the fragment stage.

ValueSummary
NONENo stencil code: the backend uses its own stencil buffer, or none.
TESTThe fragment stage discards the fragments that fail the comparison against the stencil texture.
WRITEThe fragment stage outputs, in its red channel, the stencil value after the fail or the pass operation, to draw into the stencil texture.

NONE

No stencil code: the backend uses its own stencil buffer, or none.

TEST

The fragment stage discards the fragments that fail the comparison against the stencil texture. A translator set to TEST also gives the WRITE stage in ShaderTranslation.getStencilFragment.

WRITE

The fragment stage outputs, in its red channel, the stencil value after the fail or the pass operation, to draw into the stencil texture.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page