BlendState.Factor
enum BlendState.Factor
Package: dev.joid.lib.bridge.render.state · Module: core · Source: BlendState.java
A weight that a blend state applies to the source or the destination color before its equation.
Description
Section titled “Description”The source is the color being drawn, the destination the color already on the target; every weight is on 1.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
ZERO | Weight 0: drops that side. |
ONE | Weight 1: keeps that side as it is. |
SRC_COLOR | Multiplies by the color being drawn, channel by channel. |
ONE_MINUS_SRC_COLOR | Multiplies by 1 minus the color being drawn, channel by channel. |
DST_COLOR | Multiplies by the color on the target, channel by channel: with ZERO as destination factor, the two colors multiply. |
ONE_MINUS_DST_COLOR | Multiplies by 1 minus the color on the target, channel by channel. |
SRC_ALPHA | Multiplies by the alpha of the color being drawn. |
ONE_MINUS_SRC_ALPHA | Multiplies by 1 minus the alpha of the color being drawn. |
DST_ALPHA | Multiplies by the alpha on the target. |
ONE_MINUS_DST_ALPHA | Multiplies by 1 minus the alpha on the target. |
Value details
Section titled “Value details”ZERO
Weight 0: drops that side.
ONE
Weight 1: keeps that side as it is.
SRC_COLOR
Section titled “SRC_COLOR”SRC_COLOR
Multiplies by the color being drawn, channel by channel.
ONE_MINUS_SRC_COLOR
Section titled “ONE_MINUS_SRC_COLOR”ONE_MINUS_SRC_COLOR
Multiplies by 1 minus the color being drawn, channel by channel.
DST_COLOR
Section titled “DST_COLOR”DST_COLOR
Multiplies by the color on the target, channel by channel: with ZERO as destination factor, the two colors multiply.
ONE_MINUS_DST_COLOR
Section titled “ONE_MINUS_DST_COLOR”ONE_MINUS_DST_COLOR
Multiplies by 1 minus the color on the target, channel by channel.
SRC_ALPHA
Section titled “SRC_ALPHA”SRC_ALPHA
Multiplies by the alpha of the color being drawn.
ONE_MINUS_SRC_ALPHA
Section titled “ONE_MINUS_SRC_ALPHA”ONE_MINUS_SRC_ALPHA
Multiplies by 1 minus the alpha of the color being drawn.
DST_ALPHA
Section titled “DST_ALPHA”DST_ALPHA
Multiplies by the alpha on the target.
ONE_MINUS_DST_ALPHA
Section titled “ONE_MINUS_DST_ALPHA”ONE_MINUS_DST_ALPHA
Multiplies by 1 minus the alpha on the target.
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
