|
Blender V5.0
|
General operations, lookup, etc. for blender lights. More...
#include "BLI_compiler_attrs.h"#include "BLI_math_matrix_types.hh"#include "BLI_math_vector_types.hh"Go to the source code of this file.
Functions | |
| Light * | BKE_light_add (Main *bmain, const char *name) ATTR_WARN_UNUSED_RESULT |
| void | BKE_light_eval (Depsgraph *depsgraph, Light *la) |
| float | BKE_light_power (const Light &light) |
| blender::float3 | BKE_light_color (const Light &light) |
| float | BKE_light_area (const Light &light, const blender::float4x4 &object_to_world) |
General operations, lookup, etc. for blender lights.
Definition in file BKE_light.h.
Definition at line 197 of file blenkernel/intern/light.cc.
References BKE_id_new(), and name.
Referenced by BKE_object_obdata_add_from_type(), blender::io::usd::USDLightReader::create_object(), and blender::io::fbx::FbxImportContext::import_lights().
| float BKE_light_area | ( | const Light & | light, |
| const blender::float4x4 & | object_to_world ) |
Definition at line 229 of file blenkernel/intern/light.cc.
References angle(), Light::area_shape, Light::area_size, Light::area_sizey, BLI_assert_unreachable, ELEM, float, LA_AREA, LA_AREA_DISK, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_LOCAL, LA_SPOT, LA_SUN, M_PI, Light::radius, sinf, blender::math::square(), Light::sun_angle, blender::math::to_scale(), Light::type, and blender::MatBase< T, NumCol, NumRow, Alignment >::view().
Referenced by blender::eevee::Light::sync().
| blender::float3 BKE_light_color | ( | const Light & | light | ) |
Definition at line 216 of file blenkernel/intern/light.cc.
References IMB_colormanagement_blackbody_temperature_to_rgb(), LA_USE_TEMPERATURE, Light::mode, Light::r, and Light::temperature.
Referenced by blender::eevee::Light::sync().
| void BKE_light_eval | ( | Depsgraph * | depsgraph, |
| Light * | la ) |
Definition at line 206 of file blenkernel/intern/light.cc.
References DEG_debug_print_eval(), depsgraph, Light::id, and ID::name.
Definition at line 211 of file blenkernel/intern/light.cc.
References Light::energy, and Light::exposure.
Referenced by blender::eevee::Light::sync().