PointLight2D

Inherits: Light2D < Node2D < CanvasItem < Node < Object

Properties

float

height

0.0

Vector2

offset

Vector2(0, 0)

Texture2D

texture

float

texture_scale

1.0

Property Descriptions

Default

0.0

Setter

set_height(value)

Getter

get_height()

The height of the light. Used with 2D normal mapping. The units are in pixels, e.g. if the height is 100, then it will illuminate an object 100 pixels away at a 45° angle to the plane.


Default

Vector2(0, 0)

Setter

set_texture_offset(value)

Getter

get_texture_offset()

The offset of the light's texture.


Setter

set_texture(value)

Getter

get_texture()

Texture2D used for the light's appearance.


Default

1.0

Setter

set_texture_scale(value)

Getter

get_texture_scale()

The texture's scale factor.