blend-function


Vocabulary
gpu.state

Class description
The blend-functions of a blend-mode multiply the source and destination colors being blended by a function of their values before they are combined by the blend-equation.
func-zero returns a constant factor of zero.
func-one returns a constant factor of one.
func-source returns the corresponding source color component for every result component.
func-one-minus-source returns one minus the corresponding source color component for every result component.
func-dest returns the corresponding destination color component for every result component.
func-one-minus-dest returns one minus the corresponding destination color component for every result component.
func-constant returns the corresponding component of the current blend-state's constant-color for every result component.
func-one-minus-constant returns one minus the corresponding component of the current blend-state's constant-color for every result component.
func-source-alpha returns the source alpha component for every result component.
func-one-minus-source-alpha returns one minus the source alpha component for every result component.
func-dest-alpha returns the destination alpha component for every result component.
func-one-minus-dest-alpha returns one minus the destination alpha component for every result component.
func-constant-alpha returns the alpha component of the current blend-state's constant-color for every result component.
func-one-minus-constant-alpha returns one minus the alpha component of the current blend-state's constant-color for every result component.


Definition