123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
- .. _class_BakedLight:
- BakedLight
- ==========
- **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Member Functions
- ----------------
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_lightmap<class_BakedLight_add_lightmap>` **(** :ref:`Texture<class_texture>` texture, :ref:`Vector2<class_vector2>` gen_size **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear_lightmaps<class_BakedLight_clear_lightmaps>` **(** **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`erase_lightmap<class_BakedLight_erase_lightmap>` **(** :ref:`int<class_int>` id **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_ao_radius<class_BakedLight_get_ao_radius>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_ao_strength<class_BakedLight_get_ao_strength>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_bake_flag<class_BakedLight_get_bake_flag>` **(** :ref:`int<class_int>` flag **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_bounces<class_BakedLight_get_bounces>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_cell_extra_margin<class_BakedLight_get_cell_extra_margin>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_cell_subdivision<class_BakedLight_get_cell_subdivision>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_edge_damp<class_BakedLight_get_edge_damp>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_energy_multiplier<class_BakedLight_get_energy_multiplier>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_format<class_BakedLight_get_format>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_gamma_adjust<class_BakedLight_get_gamma_adjust>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_initial_lattice_subdiv<class_BakedLight_get_initial_lattice_subdiv>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RawArray<class_rawarray>` | :ref:`get_light<class_BakedLight_get_light>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_mode<class_BakedLight_get_mode>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_normal_damp<class_BakedLight_get_normal_damp>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RawArray<class_rawarray>` | :ref:`get_octree<class_BakedLight_get_octree>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_plot_size<class_BakedLight_get_plot_size>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_color>` | :ref:`get_realtime_color<class_BakedLight_get_realtime_color>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_realtime_color_enabled<class_BakedLight_get_realtime_color_enabled>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_realtime_energy<class_BakedLight_get_realtime_energy>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`IntArray<class_intarray>` | :ref:`get_sampler_octree<class_BakedLight_get_sampler_octree>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_saturation<class_BakedLight_get_saturation>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_tint<class_BakedLight_get_tint>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_transfer_lightmaps_only_to_uv2<class_BakedLight_get_transfer_lightmaps_only_to_uv2>` **(** **)** const |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_ao_radius<class_BakedLight_set_ao_radius>` **(** :ref:`float<class_float>` ao_radius **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_ao_strength<class_BakedLight_set_ao_strength>` **(** :ref:`float<class_float>` ao_strength **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_bake_flag<class_BakedLight_set_bake_flag>` **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_bounces<class_BakedLight_set_bounces>` **(** :ref:`int<class_int>` bounces **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_cell_extra_margin<class_BakedLight_set_cell_extra_margin>` **(** :ref:`float<class_float>` cell_extra_margin **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_cell_subdivision<class_BakedLight_set_cell_subdivision>` **(** :ref:`int<class_int>` cell_subdivision **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_edge_damp<class_BakedLight_set_edge_damp>` **(** :ref:`float<class_float>` edge_damp **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_energy_multiplier<class_BakedLight_set_energy_multiplier>` **(** :ref:`float<class_float>` energy_multiplier **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_format<class_BakedLight_set_format>` **(** :ref:`int<class_int>` format **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_gamma_adjust<class_BakedLight_set_gamma_adjust>` **(** :ref:`float<class_float>` gamma_adjust **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_initial_lattice_subdiv<class_BakedLight_set_initial_lattice_subdiv>` **(** :ref:`int<class_int>` cell_subdivision **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_light<class_BakedLight_set_light>` **(** :ref:`RawArray<class_rawarray>` light **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_mode<class_BakedLight_set_mode>` **(** :ref:`int<class_int>` mode **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_normal_damp<class_BakedLight_set_normal_damp>` **(** :ref:`float<class_float>` normal_damp **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_octree<class_BakedLight_set_octree>` **(** :ref:`RawArray<class_rawarray>` octree **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_plot_size<class_BakedLight_set_plot_size>` **(** :ref:`float<class_float>` plot_size **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_realtime_color<class_BakedLight_set_realtime_color>` **(** :ref:`Color<class_color>` tint **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_realtime_color_enabled<class_BakedLight_set_realtime_color_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_realtime_energy<class_BakedLight_set_realtime_energy>` **(** :ref:`float<class_float>` energy **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_sampler_octree<class_BakedLight_set_sampler_octree>` **(** :ref:`IntArray<class_intarray>` sampler_octree **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_saturation<class_BakedLight_set_saturation>` **(** :ref:`float<class_float>` saturation **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_tint<class_BakedLight_set_tint>` **(** :ref:`float<class_float>` tint **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_transfer_lightmaps_only_to_uv2<class_BakedLight_set_transfer_lightmaps_only_to_uv2>` **(** :ref:`bool<class_bool>` enable **)** |
- +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
- Numeric Constants
- -----------------
- - **MODE_OCTREE** = **0**
- - **MODE_LIGHTMAPS** = **1**
- - **BAKE_DIFFUSE** = **0**
- - **BAKE_SPECULAR** = **1**
- - **BAKE_TRANSLUCENT** = **2**
- - **BAKE_CONSERVE_ENERGY** = **3**
- - **BAKE_MAX** = **5**
- Member Function Description
- ---------------------------
- .. _class_BakedLight_add_lightmap:
- - void **add_lightmap** **(** :ref:`Texture<class_texture>` texture, :ref:`Vector2<class_vector2>` gen_size **)**
- .. _class_BakedLight_clear_lightmaps:
- - void **clear_lightmaps** **(** **)**
- .. _class_BakedLight_erase_lightmap:
- - void **erase_lightmap** **(** :ref:`int<class_int>` id **)**
- .. _class_BakedLight_get_ao_radius:
- - :ref:`float<class_float>` **get_ao_radius** **(** **)** const
- .. _class_BakedLight_get_ao_strength:
- - :ref:`float<class_float>` **get_ao_strength** **(** **)** const
- .. _class_BakedLight_get_bake_flag:
- - :ref:`bool<class_bool>` **get_bake_flag** **(** :ref:`int<class_int>` flag **)** const
- .. _class_BakedLight_get_bounces:
- - :ref:`int<class_int>` **get_bounces** **(** **)** const
- .. _class_BakedLight_get_cell_extra_margin:
- - :ref:`float<class_float>` **get_cell_extra_margin** **(** **)** const
- .. _class_BakedLight_get_cell_subdivision:
- - :ref:`int<class_int>` **get_cell_subdivision** **(** **)** const
- .. _class_BakedLight_get_edge_damp:
- - :ref:`float<class_float>` **get_edge_damp** **(** **)** const
- .. _class_BakedLight_get_energy_multiplier:
- - :ref:`float<class_float>` **get_energy_multiplier** **(** **)** const
- .. _class_BakedLight_get_format:
- - :ref:`int<class_int>` **get_format** **(** **)** const
- .. _class_BakedLight_get_gamma_adjust:
- - :ref:`float<class_float>` **get_gamma_adjust** **(** **)** const
- .. _class_BakedLight_get_initial_lattice_subdiv:
- - :ref:`int<class_int>` **get_initial_lattice_subdiv** **(** **)** const
- .. _class_BakedLight_get_light:
- - :ref:`RawArray<class_rawarray>` **get_light** **(** **)** const
- .. _class_BakedLight_get_mode:
- - :ref:`int<class_int>` **get_mode** **(** **)** const
- .. _class_BakedLight_get_normal_damp:
- - :ref:`float<class_float>` **get_normal_damp** **(** **)** const
- .. _class_BakedLight_get_octree:
- - :ref:`RawArray<class_rawarray>` **get_octree** **(** **)** const
- .. _class_BakedLight_get_plot_size:
- - :ref:`float<class_float>` **get_plot_size** **(** **)** const
- .. _class_BakedLight_get_realtime_color:
- - :ref:`Color<class_color>` **get_realtime_color** **(** **)** const
- .. _class_BakedLight_get_realtime_color_enabled:
- - :ref:`bool<class_bool>` **get_realtime_color_enabled** **(** **)** const
- .. _class_BakedLight_get_realtime_energy:
- - :ref:`float<class_float>` **get_realtime_energy** **(** **)** const
- .. _class_BakedLight_get_sampler_octree:
- - :ref:`IntArray<class_intarray>` **get_sampler_octree** **(** **)** const
- .. _class_BakedLight_get_saturation:
- - :ref:`float<class_float>` **get_saturation** **(** **)** const
- .. _class_BakedLight_get_tint:
- - :ref:`float<class_float>` **get_tint** **(** **)** const
- .. _class_BakedLight_get_transfer_lightmaps_only_to_uv2:
- - :ref:`bool<class_bool>` **get_transfer_lightmaps_only_to_uv2** **(** **)** const
- .. _class_BakedLight_set_ao_radius:
- - void **set_ao_radius** **(** :ref:`float<class_float>` ao_radius **)**
- .. _class_BakedLight_set_ao_strength:
- - void **set_ao_strength** **(** :ref:`float<class_float>` ao_strength **)**
- .. _class_BakedLight_set_bake_flag:
- - void **set_bake_flag** **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enabled **)**
- .. _class_BakedLight_set_bounces:
- - void **set_bounces** **(** :ref:`int<class_int>` bounces **)**
- .. _class_BakedLight_set_cell_extra_margin:
- - void **set_cell_extra_margin** **(** :ref:`float<class_float>` cell_extra_margin **)**
- .. _class_BakedLight_set_cell_subdivision:
- - void **set_cell_subdivision** **(** :ref:`int<class_int>` cell_subdivision **)**
- .. _class_BakedLight_set_edge_damp:
- - void **set_edge_damp** **(** :ref:`float<class_float>` edge_damp **)**
- .. _class_BakedLight_set_energy_multiplier:
- - void **set_energy_multiplier** **(** :ref:`float<class_float>` energy_multiplier **)**
- .. _class_BakedLight_set_format:
- - void **set_format** **(** :ref:`int<class_int>` format **)**
- .. _class_BakedLight_set_gamma_adjust:
- - void **set_gamma_adjust** **(** :ref:`float<class_float>` gamma_adjust **)**
- .. _class_BakedLight_set_initial_lattice_subdiv:
- - void **set_initial_lattice_subdiv** **(** :ref:`int<class_int>` cell_subdivision **)**
- .. _class_BakedLight_set_light:
- - void **set_light** **(** :ref:`RawArray<class_rawarray>` light **)**
- .. _class_BakedLight_set_mode:
- - void **set_mode** **(** :ref:`int<class_int>` mode **)**
- .. _class_BakedLight_set_normal_damp:
- - void **set_normal_damp** **(** :ref:`float<class_float>` normal_damp **)**
- .. _class_BakedLight_set_octree:
- - void **set_octree** **(** :ref:`RawArray<class_rawarray>` octree **)**
- .. _class_BakedLight_set_plot_size:
- - void **set_plot_size** **(** :ref:`float<class_float>` plot_size **)**
- .. _class_BakedLight_set_realtime_color:
- - void **set_realtime_color** **(** :ref:`Color<class_color>` tint **)**
- .. _class_BakedLight_set_realtime_color_enabled:
- - void **set_realtime_color_enabled** **(** :ref:`bool<class_bool>` enabled **)**
- .. _class_BakedLight_set_realtime_energy:
- - void **set_realtime_energy** **(** :ref:`float<class_float>` energy **)**
- .. _class_BakedLight_set_sampler_octree:
- - void **set_sampler_octree** **(** :ref:`IntArray<class_intarray>` sampler_octree **)**
- .. _class_BakedLight_set_saturation:
- - void **set_saturation** **(** :ref:`float<class_float>` saturation **)**
- .. _class_BakedLight_set_tint:
- - void **set_tint** **(** :ref:`float<class_float>` tint **)**
- .. _class_BakedLight_set_transfer_lightmaps_only_to_uv2:
- - void **set_transfer_lightmaps_only_to_uv2** **(** :ref:`bool<class_bool>` enable **)**
|