Value | Meaning |
---|---|
modeAdd0 | Adds the value of pixels corresponding to the Light2D to the values of pixels under it. This is the common behavior of a light. |
modeSub1 | Subtracts the value of pixels corresponding to the Light2D to the values of pixels under it, resulting in inversed light effect. |
modeMix2 | Mix the value of pixels corresponding to the Light2D to the values of pixels under it by linear interpolation. |
modeMask3 | 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. |