BlendMode
Blend modes control how overlapping pixels are blended together, similar to layers in Photoshop.
Value | Description |
alpha | Normal blending where the alpha value controls how the colors are blended. |
add | The incoming pixel color is added to the destination pixel color. |
subtract | The incoming pixel color is subtracted from the destination pixel color. |
multiply | The color channels from the two pixel values are multiplied together to produce a result. |
lighten | The maximum value from each color channel is used, resulting in a lightening effect. |
darken | The minimum value from each color channel is used, resulting in a darkening effect. |
screen | The opposite of multiply: The pixel values are inverted, multiplied, and inverted again, resulting in a lightening effect. |
See also
BlendAlphaMode
lovr.graphics.getBlendMode
lovr.graphics.setBlendMode
lovr.graphics