Skip to content

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.

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.

ValueSummary
ADDS + D, the usual choice.
SUBTRACTS − D, clamped at zero.
REVERSE_SUBTRACTD − S, clamped at zero: darkens the target by what you draw.
MINThe smaller of the source and the destination, channel by channel, without factors.
MAXThe larger of the source and the destination, channel by channel, without factors.

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.


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