Light2D.Mode/mode - multiple declarations

Function Light2D.mode

The Light2D's mode. See mode constants for values.

Light2D.Mode mode() nothrow @property @nogc;

void mode (
  long v
) nothrow @property @nogc;

Enum Light2D.Mode

enum Mode : int { ... }

Enum members

NameDescription
modeAdd Adds the value of pixels corresponding to the Light2D to the values of pixels under it. This is the common behavior of a light.
modeMask The light texture of the Light2D is used as a mask, hiding or revealing parts of the screen underneath depending on the value of each pixel of the light (mask) texture.
modeMix Mix the value of pixels corresponding to the Light2D to the values of pixels under it by linear interpolation.
modeSub Subtracts the value of pixels corresponding to the Light2D to the values of pixels under it, resulting in inversed light effect.