Skip to content

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.

The source is the color being drawn, the destination the color already on the target; every weight is on 1.

ValueSummary
ZEROWeight 0: drops that side.
ONEWeight 1: keeps that side as it is.
SRC_COLORMultiplies by the color being drawn, channel by channel.
ONE_MINUS_SRC_COLORMultiplies by 1 minus the color being drawn, channel by channel.
DST_COLORMultiplies by the color on the target, channel by channel: with ZERO as destination factor, the two colors multiply.
ONE_MINUS_DST_COLORMultiplies by 1 minus the color on the target, channel by channel.
SRC_ALPHAMultiplies by the alpha of the color being drawn.
ONE_MINUS_SRC_ALPHAMultiplies by 1 minus the alpha of the color being drawn.
DST_ALPHAMultiplies by the alpha on the target.
ONE_MINUS_DST_ALPHAMultiplies by 1 minus the alpha on the target.

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.


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