StencilFunction
enum StencilFunction
Package: dev.joid.lib.bridge.render.state · Module: core · Source: StencilFunction.java
The comparison of a stencil test between the masked reference and the masked stored value.
Description
Section titled “Description”Each value matches the OpenGL function of the same name, with the reference on the left: LESS passes when the reference is lower than the stored value.
The order of the constants is part of the contract: StencilEmulation sends their ordinal to the shader.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
NEVER | The test always fails. |
LESS | Passes when the reference is lower than the stored value. |
LESS_EQUAL | Passes when the reference is lower than or equal to the stored value. |
GREATER | Passes when the reference is greater than the stored value. |
GREATER_EQUAL | Passes when the reference is greater than or equal to the stored value. |
EQUAL | Passes when the reference equals the stored value. |
NOT_EQUAL | Passes when the reference differs from the stored value. |
ALWAYS | The test always passes. |
Value details
Section titled “Value details”NEVER
The test always fails.
LESS
Passes when the reference is lower than the stored value.
LESS_EQUAL
Section titled “LESS_EQUAL”LESS_EQUAL
Passes when the reference is lower than or equal to the stored value.
GREATER
Section titled “GREATER”GREATER
Passes when the reference is greater than the stored value.
GREATER_EQUAL
Section titled “GREATER_EQUAL”GREATER_EQUAL
Passes when the reference is greater than or equal to the stored value.
EQUAL
Passes when the reference equals the stored value.
NOT_EQUAL
Section titled “NOT_EQUAL”NOT_EQUAL
Passes when the reference differs from the stored value.
ALWAYS
Section titled “ALWAYS”ALWAYS
The test always passes.
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
