Light3D

Inherits: VisualInstance3D < Node3D < Node < Object

Inherited By: DirectionalLight3D, OmniLight3D, SpotLight3D

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

Properties

float

distance_fade_begin

40.0

bool

distance_fade_enabled

false

float

distance_fade_length

10.0

float

distance_fade_shadow

50.0

bool

editor_only

false

float

light_angular_distance

0.0

BakeMode

light_bake_mode

2

Color

light_color

Color(1, 1, 1, 1)

int

light_cull_mask

4294967295

float

light_energy

1.0

float

light_indirect_energy

1.0

float

light_intensity_lumens

float

light_intensity_lux

bool

light_negative

false

Texture2D

light_projector

float

light_size

0.0

float

light_specular

0.5

float

light_temperature

float

light_volumetric_fog_energy

1.0

float

shadow_bias

0.1

float

shadow_blur

1.0

bool

shadow_enabled

false

float

shadow_normal_bias

2.0

float

shadow_opacity

1.0

bool

shadow_reverse_cull_face

false

float

shadow_transmittance_bias

0.05

Methods

Color

get_correlated_color ( ) const

float

get_param ( Param param ) const

void

set_param ( Param param, float value )


Enumerations

enum Param:

Param PARAM_ENERGY = 0

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

Param PARAM_INDIRECT_ENERGY = 1

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

Param PARAM_VOLUMETRIC_FOG_ENERGY = 2

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

Param PARAM_SPECULAR = 3

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

Param PARAM_RANGE = 4

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

Param PARAM_SIZE = 5

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

Param PARAM_ATTENUATION = 6

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

Param PARAM_SPOT_ANGLE = 7

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

Param PARAM_SPOT_ATTENUATION = 8

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

Param PARAM_SHADOW_MAX_DISTANCE = 9

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

Param PARAM_SHADOW_SPLIT_1_OFFSET = 10

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

Param PARAM_SHADOW_SPLIT_2_OFFSET = 11

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

Param PARAM_SHADOW_SPLIT_3_OFFSET = 12

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

Param PARAM_SHADOW_FADE_START = 13

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

Param PARAM_SHADOW_NORMAL_BIAS = 14

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

Param PARAM_SHADOW_BIAS = 15

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

Param PARAM_SHADOW_PANCAKE_SIZE = 16

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

Param PARAM_SHADOW_OPACITY = 17

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

Param PARAM_SHADOW_BLUR = 18

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

Param PARAM_TRANSMITTANCE_BIAS = 19

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

Param PARAM_INTENSITY = 20

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

Param PARAM_MAX = 21

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


enum BakeMode:

BakeMode BAKE_DISABLED = 0

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

BakeMode BAKE_STATIC = 1

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

BakeMode BAKE_DYNAMIC = 2

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


Property Descriptions

float distance_fade_begin = 40.0

  • void set_distance_fade_begin ( float value )

  • float get_distance_fade_begin ( )

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


bool distance_fade_enabled = false

  • void set_enable_distance_fade ( bool value )

  • bool is_distance_fade_enabled ( )

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


float distance_fade_length = 10.0

  • void set_distance_fade_length ( float value )

  • float get_distance_fade_length ( )

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


float distance_fade_shadow = 50.0

  • void set_distance_fade_shadow ( float value )

  • float get_distance_fade_shadow ( )

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!


float light_angular_distance = 0.0

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


BakeMode light_bake_mode = 2

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


Color light_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!


int light_cull_mask = 4294967295

  • void set_cull_mask ( int value )

  • int get_cull_mask ( )

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


float light_energy = 1.0

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


float light_indirect_energy = 1.0

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


float light_intensity_lumens

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


float light_intensity_lux

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


bool light_negative = false

  • void set_negative ( bool value )

  • bool is_negative ( )

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


Texture2D light_projector

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


float light_size = 0.0

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


float light_specular = 0.5

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


float light_temperature

  • void set_temperature ( float value )

  • float get_temperature ( )

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


float light_volumetric_fog_energy = 1.0

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


float shadow_bias = 0.1

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


float shadow_blur = 1.0

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


bool shadow_enabled = false

  • void set_shadow ( bool value )

  • bool has_shadow ( )

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


float shadow_normal_bias = 2.0

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


float shadow_opacity = 1.0

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


bool shadow_reverse_cull_face = false

  • void set_shadow_reverse_cull_face ( bool value )

  • bool get_shadow_reverse_cull_face ( )

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


float shadow_transmittance_bias = 0.05

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


Method Descriptions

Color get_correlated_color ( ) const

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


float get_param ( Param param ) const

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


void set_param ( Param param, float value )

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