Initialize class variables with default values in scene/ [1/2]
This commit is contained in:
parent
57e2822a05
commit
003bb8e1a8
139 changed files with 871 additions and 1652 deletions
|
|
@ -52,24 +52,24 @@ public:
|
|||
|
||||
private:
|
||||
RID canvas_light;
|
||||
bool enabled;
|
||||
bool editor_only;
|
||||
bool shadow;
|
||||
Color color;
|
||||
Color shadow_color;
|
||||
float height;
|
||||
float energy;
|
||||
int z_min;
|
||||
int z_max;
|
||||
int layer_min;
|
||||
int layer_max;
|
||||
int item_mask;
|
||||
int item_shadow_mask;
|
||||
float shadow_smooth;
|
||||
bool enabled = true;
|
||||
bool editor_only = false;
|
||||
bool shadow = false;
|
||||
Color color = Color(1, 1, 1);
|
||||
Color shadow_color = Color(0, 0, 0, 0);
|
||||
float height = 0.0;
|
||||
float energy = 1.0;
|
||||
int z_min = -1024;
|
||||
int z_max = 1024;
|
||||
int layer_min = 0;
|
||||
int layer_max = 0;
|
||||
int item_mask = 1;
|
||||
int item_shadow_mask = 1;
|
||||
float shadow_smooth = 0.0;
|
||||
Ref<Texture2D> texture;
|
||||
Vector2 texture_offset;
|
||||
ShadowFilter shadow_filter;
|
||||
BlendMode blend_mode;
|
||||
ShadowFilter shadow_filter = SHADOW_FILTER_NONE;
|
||||
BlendMode blend_mode = BLEND_MODE_ADD;
|
||||
|
||||
void _update_light_visibility();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue