BlendState.Equation
enum BlendState.Equation
Package: dev.joid.lib.bridge.render.state · Module: core · Source: BlendState.java
The operation that combines the weighted source and destination colors of a blend state.
Description
Section titled “Description”S is the color being drawn times its source factor, D the color on the target times its destination factor.
MIN and MAX ignore the factors.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
ADD | S + D, the usual choice. |
SUBTRACT | S − D, clamped at zero. |
REVERSE_SUBTRACT | D − S, clamped at zero: darkens the target by what you draw. |
MIN | The smaller of the source and the destination, channel by channel, without factors. |
MAX | The larger of the source and the destination, channel by channel, without factors. |
Value details
Section titled “Value details”ADD
S + D, the usual choice.
SUBTRACT
Section titled “SUBTRACT”SUBTRACT
S − D, clamped at zero.
REVERSE_SUBTRACT
Section titled “REVERSE_SUBTRACT”REVERSE_SUBTRACT
D − S, clamped at zero: darkens the target by what you draw.
MIN
The smaller of the source and the destination, channel by channel, without factors.
MAX
The larger of the source and the destination, channel by channel, without factors.
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
