5 #include "scene/resources/texture.h" 49 float energy_multiply;
51 float cell_extra_margin;
59 bool transfer_only_uv2;
65 void _update_lightmaps();
67 Array _get_lightmap_data()
const;
68 void _set_lightmap_data(
Array p_array);
76 static void _bind_methods();
80 void set_cell_subdivision(
int p_subdiv);
81 int get_cell_subdivision()
const;
83 void set_initial_lattice_subdiv(
int p_size);
84 int get_initial_lattice_subdiv()
const;
86 void set_plot_size(
float p_size);
87 float get_plot_size()
const;
89 void set_bounces(
int p_size);
90 int get_bounces()
const;
92 void set_energy_multiplier(
float p_multiplier);
93 float get_energy_multiplier()
const;
95 void set_gamma_adjust(
float p_adjust);
96 float get_gamma_adjust()
const;
98 void set_cell_extra_margin(
float p_margin);
99 float get_cell_extra_margin()
const;
101 void set_edge_damp(
float p_margin);
102 float get_edge_damp()
const;
104 void set_normal_damp(
float p_margin);
105 float get_normal_damp()
const;
107 void set_tint(
float p_margin);
108 float get_tint()
const;
110 void set_saturation(
float p_saturation);
111 float get_saturation()
const;
113 void set_ao_radius(
float p_ao_radius);
114 float get_ao_radius()
const;
116 void set_ao_strength(
float p_ao_strength);
117 float get_ao_strength()
const;
119 void set_bake_flag(BakeFlags p_flags,
bool p_enable);
120 bool get_bake_flag(BakeFlags p_flags)
const;
122 void set_format(Format p_margin);
123 Format get_format()
const;
125 void set_transfer_lightmaps_only_to_uv2(
bool p_enable);
126 bool get_transfer_lightmaps_only_to_uv2()
const;
128 void set_mode(Mode p_mode);
129 Mode get_mode()
const;
137 void set_sampler_octree(
const DVector<int>& p_sampler_octree);
143 void set_lightmap_gen_size(
int p_idx,
const Size2& p_size);
144 Size2 get_lightmap_gen_size(
int p_idx)
const;
145 void set_lightmap_texture(
int p_idx,
const Ref<Texture> &p_texture);
147 void erase_lightmap(
int p_idx);
148 int get_lightmaps_count()
const;
149 void clear_lightmaps();
151 virtual RID get_rid()
const;
158 VARIANT_ENUM_CAST(BakedLight::Format);
159 VARIANT_ENUM_CAST(BakedLight::Mode);
160 VARIANT_ENUM_CAST(BakedLight::BakeFlags);
162 #endif // BAKED_LIGHT_H
Definition: baked_light.h:7
Definition: math_2d.h:369
Definition: string_db.h:48
Definition: resource.h:89