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.
Description
Section titled “Description”stencil(...) of GlslShaderTranslator takes it to add the code of StencilEmulation to the fragment stage.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
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. |
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. |
Value details
Section titled “Value details”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
