Light2D

Inherits: Node2D < CanvasItem < Node < Object

Inherited By: DirectionalLight2D, PointLight2D

There is currently no description for this class. Please help us by contributing one!

Properties

BlendMode

blend_mode

0

Color

color

Color(1, 1, 1, 1)

bool

editor_only

false

bool

enabled

true

float

energy

1.0

int

range_item_cull_mask

1

int

range_layer_max

0

int

range_layer_min

0

int

range_z_max

1024

int

range_z_min

-1024

Color

shadow_color

Color(0, 0, 0, 0)

bool

shadow_enabled

false

ShadowFilter

shadow_filter

0

float

shadow_filter_smooth

0.0

int

shadow_item_cull_mask

1

Methods

float

get_height ( ) const

void

set_height ( float height )


Enumerations

enum ShadowFilter:

ShadowFilter SHADOW_FILTER_NONE = 0

There is currently no description for this enum. Please help us by contributing one!

ShadowFilter SHADOW_FILTER_PCF5 = 1

There is currently no description for this enum. Please help us by contributing one!

ShadowFilter SHADOW_FILTER_PCF13 = 2

There is currently no description for this enum. Please help us by contributing one!


enum BlendMode:

BlendMode BLEND_MODE_ADD = 0

There is currently no description for this enum. Please help us by contributing one!

BlendMode BLEND_MODE_SUB = 1

There is currently no description for this enum. Please help us by contributing one!

BlendMode BLEND_MODE_MIX = 2

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

BlendMode blend_mode = 0

There is currently no description for this property. Please help us by contributing one!


Color color = Color(1, 1, 1, 1)

  • void set_color ( Color value )

  • Color get_color ( )

There is currently no description for this property. Please help us by contributing one!


bool editor_only = false

  • void set_editor_only ( bool value )

  • bool is_editor_only ( )

There is currently no description for this property. Please help us by contributing one!


bool enabled = true

  • void set_enabled ( bool value )

  • bool is_enabled ( )

There is currently no description for this property. Please help us by contributing one!


float energy = 1.0

  • void set_energy ( float value )

  • float get_energy ( )

There is currently no description for this property. Please help us by contributing one!


int range_item_cull_mask = 1

  • void set_item_cull_mask ( int value )

  • int get_item_cull_mask ( )

There is currently no description for this property. Please help us by contributing one!


int range_layer_max = 0

  • void set_layer_range_max ( int value )

  • int get_layer_range_max ( )

There is currently no description for this property. Please help us by contributing one!


int range_layer_min = 0

  • void set_layer_range_min ( int value )

  • int get_layer_range_min ( )

There is currently no description for this property. Please help us by contributing one!


int range_z_max = 1024

  • void set_z_range_max ( int value )

  • int get_z_range_max ( )

There is currently no description for this property. Please help us by contributing one!


int range_z_min = -1024

  • void set_z_range_min ( int value )

  • int get_z_range_min ( )

There is currently no description for this property. Please help us by contributing one!


Color shadow_color = Color(0, 0, 0, 0)

  • void set_shadow_color ( Color value )

  • Color get_shadow_color ( )

There is currently no description for this property. Please help us by contributing one!


bool shadow_enabled = false

  • void set_shadow_enabled ( bool value )

  • bool is_shadow_enabled ( )

There is currently no description for this property. Please help us by contributing one!


ShadowFilter shadow_filter = 0

There is currently no description for this property. Please help us by contributing one!


float shadow_filter_smooth = 0.0

  • void set_shadow_smooth ( float value )

  • float get_shadow_smooth ( )

There is currently no description for this property. Please help us by contributing one!


int shadow_item_cull_mask = 1

  • void set_item_shadow_cull_mask ( int value )

  • int get_item_shadow_cull_mask ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

float get_height ( ) const

There is currently no description for this method. Please help us by contributing one!


void set_height ( float height )

There is currently no description for this method. Please help us by contributing one!