|
Blender
V2.93
|
#include <DNA_light_types.h>
Inherits Node.
Public Member Functions | |
| Light () | |
| void | tag_update (Scene *scene) |
| bool | has_contribution (Scene *scene) |
Public Member Functions inherited from Node | |
| Node (const NodeType *type, ustring name=ustring()) | |
| virtual | ~Node ()=0 |
| void | set (const SocketType &input, bool value) |
| void | set (const SocketType &input, int value) |
| void | set (const SocketType &input, uint value) |
| void | set (const SocketType &input, float value) |
| void | set (const SocketType &input, float2 value) |
| void | set (const SocketType &input, float3 value) |
| void | set (const SocketType &input, const char *value) |
| void | set (const SocketType &input, ustring value) |
| void | set (const SocketType &input, const Transform &value) |
| void | set (const SocketType &input, Node *value) |
| void | set (const SocketType &input, array< bool > &value) |
| void | set (const SocketType &input, array< int > &value) |
| void | set (const SocketType &input, array< float > &value) |
| void | set (const SocketType &input, array< float2 > &value) |
| void | set (const SocketType &input, array< float3 > &value) |
| void | set (const SocketType &input, array< ustring > &value) |
| void | set (const SocketType &input, array< Transform > &value) |
| void | set (const SocketType &input, array< Node * > &value) |
| bool | get_bool (const SocketType &input) const |
| int | get_int (const SocketType &input) const |
| uint | get_uint (const SocketType &input) const |
| float | get_float (const SocketType &input) const |
| float2 | get_float2 (const SocketType &input) const |
| float3 | get_float3 (const SocketType &input) const |
| ustring | get_string (const SocketType &input) const |
| Transform | get_transform (const SocketType &input) const |
| Node * | get_node (const SocketType &input) const |
| const array< bool > & | get_bool_array (const SocketType &input) const |
| const array< int > & | get_int_array (const SocketType &input) const |
| const array< float > & | get_float_array (const SocketType &input) const |
| const array< float2 > & | get_float2_array (const SocketType &input) const |
| const array< float3 > & | get_float3_array (const SocketType &input) const |
| const array< ustring > & | get_string_array (const SocketType &input) const |
| const array< Transform > & | get_transform_array (const SocketType &input) const |
| const array< Node * > & | get_node_array (const SocketType &input) const |
| bool | has_default_value (const SocketType &input) const |
| void | set_default_value (const SocketType &input) |
| bool | equals_value (const Node &other, const SocketType &input) const |
| void | copy_value (const SocketType &input, const Node &other, const SocketType &other_input) |
| void | set_value (const SocketType &input, const Node &other, const SocketType &other_input) |
| bool | equals (const Node &other) const |
| void | hash (MD5Hash &md5) |
| size_t | get_total_size_in_bytes () const |
| bool | is_a (const NodeType *type) |
| bool | socket_is_modified (const SocketType &input) const |
| bool | is_modified () |
| void | tag_modified () |
| void | clear_modified () |
| void | print_modified_sockets () const |
| const NodeOwner * | get_owner () const |
| void | set_owner (const NodeOwner *owner_) |
Friends | |
| class | LightManager |
Additional Inherited Members | |
Protected Member Functions inherited from Node | |
| template<typename T > | |
| void | set_if_different (const SocketType &input, T value) |
| template<typename T > | |
| void | set_if_different (const SocketType &input, array< T > &value) |
Static Protected Member Functions inherited from Node | |
| template<typename T > | |
| static T & | get_socket_value (const Node *node, const SocketType &socket) |
Protected Attributes inherited from Node | |
| const NodeOwner * | owner |
| SocketModifiedFlags | socket_modified |
Definition at line 42 of file DNA_light_types.h.
| bool Light::has_contribution | ( | Scene * | scene | ) |
Definition at line 175 of file light.cpp.
References Scene::default_light, Shader::has_surface_emission, LIGHT_BACKGROUND, scene, shader(), and zero_float3().
Referenced by LightManager::test_enabled_lights().
| void Light::tag_update | ( | Scene * | scene | ) |
Definition at line 164 of file light.cpp.
References Scene::integrator, Node::is_modified(), Scene::light_manager, LightManager::LIGHT_MODIFIED, Integrator::LIGHT_SAMPLES_MODIFIED, scene, Integrator::tag_update(), and LightManager::tag_update().
|
friend |
| char Light::_pad0[4] |
Definition at line 58 of file DNA_light_types.h.
| char Light::_pad2[2] |
Definition at line 61 of file DNA_light_types.h.
| char Light::_pad6[4] |
Definition at line 83 of file DNA_light_types.h.
| struct AnimData* Light::adt |
Animation data (must be immediately after id for utilities to use it).
Definition at line 45 of file DNA_light_types.h.
Referenced by acf_dslight_setting_ptr(), bc_getSceneLightAction(), light_blend_read_data(), light_blend_write(), make_new_animlistelem(), outliner_add_id_contents(), and AnimationImporter::translate_Animations().
| short Light::area_shape |
Definition at line 71 of file DNA_light_types.h.
Referenced by apply_objects_internal(), blender::io::usd::USDLightWriter::do_write(), eevee_light_setup(), gizmo_area_light_prop_matrix_get(), gizmo_area_light_prop_matrix_set(), light_shape_parameters_set(), light_shape_power_get(), OVERLAY_light_cache_populate(), WIDGETGROUP_light_area_refresh(), and DocumentImporter::writeLight().
| float Light::area_size |
Definition at line 72 of file DNA_light_types.h.
Referenced by apply_objects_internal(), BKE_object_obdata_size_init(), blender::io::usd::USDLightWriter::do_write(), gizmo_area_light_prop_matrix_get(), gizmo_area_light_prop_matrix_set(), light_shape_parameters_set(), OVERLAY_light_cache_populate(), and DocumentImporter::writeLight().
| float Light::area_sizey |
Definition at line 72 of file DNA_light_types.h.
Referenced by apply_objects_internal(), BKE_object_obdata_size_init(), blender::io::usd::USDLightWriter::do_write(), gizmo_area_light_prop_matrix_get(), gizmo_area_light_prop_matrix_set(), light_shape_parameters_set(), OVERLAY_light_cache_populate(), and DocumentImporter::writeLight().
| float Light::area_sizez |
Definition at line 72 of file DNA_light_types.h.
Referenced by apply_objects_internal(), BKE_object_obdata_size_init(), and DocumentImporter::writeLight().
| float Light::area_spread |
Definition at line 73 of file DNA_light_types.h.
| float Light::att1 |
Quad1 and Quad2 attenuation.
Definition at line 56 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::att2 |
Definition at line 56 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::att_dist |
Definition at line 97 of file DNA_light_types.h.
Referenced by light_attenuation_radius_get(), and OVERLAY_light_cache_populate().
| float Light::b |
Definition at line 50 of file DNA_light_types.h.
Referenced by blender::io::usd::USDLightWriter::do_write(), eevee_light_setup(), LightsExporter::operator()(), and DocumentImporter::writeLight().
| float Light::bias |
Definition at line 64 of file DNA_light_types.h.
Referenced by EEVEE_shadows_cascade_add(), EEVEE_shadows_cube_add(), and DocumentImporter::writeLight().
| float Light::bleedbias |
Definition at line 66 of file DNA_light_types.h.
| float Light::bleedexp |
Definition at line 67 of file DNA_light_types.h.
| short Light::buffers |
Definition at line 68 of file DNA_light_types.h.
Referenced by blo_do_versions_pre250(), and DocumentImporter::writeLight().
| char Light::bufflag |
Definition at line 69 of file DNA_light_types.h.
| short Light::bufsize |
Definition at line 68 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| char Light::buftype |
Definition at line 69 of file DNA_light_types.h.
| int Light::cascade_count |
Definition at line 89 of file DNA_light_types.h.
Referenced by EEVEE_shadows_cascade_add().
| float Light::cascade_exponent |
Definition at line 87 of file DNA_light_types.h.
Referenced by EEVEE_shadows_cascade_add().
| float Light::cascade_fade |
Definition at line 88 of file DNA_light_types.h.
Referenced by EEVEE_shadows_cascade_add().
| float Light::cascade_max_dist |
Definition at line 86 of file DNA_light_types.h.
Referenced by EEVEE_shadows_cascade_add().
| float Light::clipend |
Definition at line 63 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::clipsta |
Definition at line 63 of file DNA_light_types.h.
Referenced by EEVEE_shadows_cube_add(), OVERLAY_light_cache_populate(), and DocumentImporter::writeLight().
| float Light::coeff_const |
Definition at line 57 of file DNA_light_types.h.
| float Light::coeff_lin |
Definition at line 57 of file DNA_light_types.h.
| float Light::coeff_quad |
Definition at line 57 of file DNA_light_types.h.
| float Light::contact_bias |
Definition at line 92 of file DNA_light_types.h.
Referenced by eevee_contact_shadow_setup().
| float Light::contact_dist |
Definition at line 91 of file DNA_light_types.h.
Referenced by eevee_contact_shadow_setup().
| float Light::contact_spread |
Definition at line 93 of file DNA_light_types.h.
| float Light::contact_thickness |
Definition at line 94 of file DNA_light_types.h.
Referenced by eevee_contact_shadow_setup().
| struct CurveMapping* Light::curfalloff |
Definition at line 59 of file DNA_light_types.h.
Referenced by blo_do_versions_pre250(), light_blend_read_data(), light_blend_write(), light_copy_data(), light_free_data(), and light_init_data().
| float Light::diff_fac |
Definition at line 96 of file DNA_light_types.h.
Referenced by eevee_light_setup().
| float Light::dist |
Definition at line 53 of file DNA_light_types.h.
Referenced by BKE_object_obdata_size_init(), LightsExporter::operator()(), and DocumentImporter::writeLight().
| struct Ipo* ipo Light::DNA_DEPRECATED |
Old animation system, deprecated for 2.5.
Definition at line 81 of file DNA_light_types.h.
| float Light::energy |
Definition at line 53 of file DNA_light_types.h.
Referenced by blender::io::usd::USDLightWriter::do_write(), eevee_light_setup(), EEVEE_lights_cache_add(), gpencil_light_pool_populate(), light_emission_unify(), object_light_add_exec(), LightsExporter::operator()(), and DocumentImporter::writeLight().
| short Light::falloff_type |
Definition at line 60 of file DNA_light_types.h.
Referenced by blo_do_versions_pre250(), LightsExporter::operator()(), and DocumentImporter::writeLight().
| short Light::filtertype |
Definition at line 68 of file DNA_light_types.h.
| short Light::flag |
Definition at line 47 of file DNA_light_types.h.
Referenced by acf_dslight_setting_ptr(), and DocumentImporter::writeLight().
| float Light::g |
Definition at line 50 of file DNA_light_types.h.
Referenced by blender::io::usd::USDLightWriter::do_write(), eevee_light_setup(), LightsExporter::operator()(), and DocumentImporter::writeLight().
| ID Light::id |
Definition at line 43 of file DNA_light_types.h.
Referenced by animdata_filter_ds_obdata(), BKE_light_eval(), BKE_node_tree_iter_step(), blo_do_versions_pre250(), blender::deg::DepsgraphNodeBuilder::build_light(), blender::deg::DepsgraphRelationBuilder::build_light(), blender::deg::DepsgraphRelationBuilder::build_object_data_light(), do_versions_ipos_to_animato(), gizmo_area_light_prop_matrix_set(), image_walk_id_all_users(), lamp_changed(), light_blend_read_lib(), light_blend_write(), light_copy_data(), light_free_data(), paste_mtex_exec(), AnimationImporter::translate_Animations(), and WIDGETGROUP_light_spot_refresh().
| float Light::k |
Definition at line 50 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| int Light::mode |
Definition at line 48 of file DNA_light_types.h.
Referenced by eevee_contact_shadow_setup(), EEVEE_lights_cache_add(), light_attenuation_radius_get(), OVERLAY_light_cache_populate(), and DocumentImporter::writeLight().
| struct bNodeTree* Light::nodetree |
Definition at line 103 of file DNA_light_types.h.
Referenced by animdata_filter_ds_obdata(), BKE_node_tree_iter_step(), blender::deg::DepsgraphNodeBuilder::build_light(), blender::deg::DepsgraphRelationBuilder::build_light(), ED_node_shader_default(), image_walk_id_all_users(), light_blend_write(), light_copy_data(), light_emission_node_to_energy(), light_foreach_id(), light_free_data(), preview_prepare_scene(), and shader_preview_updatejob().
| short Light::pr_texture |
Definition at line 82 of file DNA_light_types.h.
| struct PreviewImage* Light::preview |
Definition at line 100 of file DNA_light_types.h.
Referenced by light_blend_read_data(), light_blend_write(), light_copy_data(), and light_free_data().
| float Light::r |
Definition at line 50 of file DNA_light_types.h.
Referenced by blender::io::usd::USDLightWriter::do_write(), eevee_light_setup(), EEVEE_lights_cache_add(), gpencil_light_pool_populate(), light_emission_unify(), LightsExporter::operator()(), and DocumentImporter::writeLight().
| short Light::samp |
Definition at line 68 of file DNA_light_types.h.
| short Light::shadhalostep |
Definition at line 78 of file DNA_light_types.h.
| float Light::shdwb |
Definition at line 51 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::shdwg |
Definition at line 51 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::shdwpad |
Definition at line 51 of file DNA_light_types.h.
| float Light::shdwr |
Definition at line 51 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::soft |
Definition at line 65 of file DNA_light_types.h.
Referenced by DocumentImporter::writeLight().
| float Light::spec_fac |
Definition at line 97 of file DNA_light_types.h.
Referenced by blender::io::usd::USDLightWriter::do_write(), and eevee_light_setup().
| float Light::spotblend |
Definition at line 53 of file DNA_light_types.h.
Referenced by gpencil_light_pool_populate(), light_shape_parameters_set(), LightsExporter::operator()(), OVERLAY_light_cache_populate(), and DocumentImporter::writeLight().
| float Light::spotsize |
Definition at line 53 of file DNA_light_types.h.
Referenced by BKE_camera_params_from_object(), gpencil_light_pool_populate(), light_shape_parameters_set(), LightsExporter::operator()(), OVERLAY_light_cache_populate(), WIDGETGROUP_light_target_draw_prepare(), and DocumentImporter::writeLight().
| float Light::sun_angle |
Definition at line 75 of file DNA_light_types.h.
Referenced by light_shape_parameters_set().
| short Light::texact |
Definition at line 78 of file DNA_light_types.h.
| short Light::type |
Definition at line 47 of file DNA_light_types.h.
Referenced by apply_objects_internal(), blender::io::usd::USDLightWriter::do_write(), eevee_light_setup(), EEVEE_lights_cache_add(), gpencil_light_pool_populate(), blender::io::usd::USDLightWriter::is_supported(), light_emission_unify(), light_power_get(), light_shape_parameters_set(), light_shape_power_get(), light_shape_power_volume_get(), object_is_target_compat(), object_light_add_exec(), LightsExporter::operator()(), OVERLAY_light_cache_populate(), select_grouped_lighttype(), tree_element_get_icon(), WIDGETGROUP_light_area_poll(), WIDGETGROUP_light_spot_poll(), WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_light_target_poll(), and DocumentImporter::writeLight().
| short Light::use_nodes |
Definition at line 82 of file DNA_light_types.h.
Referenced by image_walk_id_all_users(), light_emission_node_to_energy(), light_emission_unify(), and node_area_refresh().
| float Light::volume_fac |
Definition at line 96 of file DNA_light_types.h.
Referenced by eevee_light_setup().