Blender V5.3
blender::eevee::LightData Struct Reference

#include <eevee_light_shared.hh>

Inherited by blender::eevee::Light.

Classes

union  [union].__unnamed0__

Public Member Functions

float3 x_axis () const
float3 y_axis () const
float3 z_axis () const
float3 position () const
int tilemap_max_get () const
int local_tilemap_count () const

Public Attributes

struct Transform object_to_world
float4 power_factor
float shape_power
float point_power
uint resource_id
enum LightFlag flags
packed_float3 color
enum eLightType type
int clip_near
int clip_far
int tilemap_index
float filter_radius
float lod_bias
float lod_min
uint2 light_set_membership
union  

Detailed Description

Definition at line 183 of file eevee_light_shared.hh.

Member Function Documentation

◆ local_tilemap_count()

int blender::eevee::LightData::local_tilemap_count ( ) const
inline

◆ position()

float3 blender::eevee::LightData::position ( ) const
inline

Definition at line 239 of file eevee_light_shared.hh.

References object_to_world.

◆ tilemap_max_get()

int blender::eevee::LightData::tilemap_max_get ( ) const
inline

Definition at line 244 of file eevee_light_shared.hh.

References blender::eevee::is_sun_light().

◆ x_axis()

float3 blender::eevee::LightData::x_axis ( ) const
inline

Definition at line 227 of file eevee_light_shared.hh.

References object_to_world.

◆ y_axis()

float3 blender::eevee::LightData::y_axis ( ) const
inline

Definition at line 231 of file eevee_light_shared.hh.

References object_to_world.

◆ z_axis()

float3 blender::eevee::LightData::z_axis ( ) const
inline

Definition at line 235 of file eevee_light_shared.hh.

References object_to_world.

Member Data Documentation

◆ @131212164101032171356373015146210073101051006047

◆ clip_far

int blender::eevee::LightData::clip_far

◆ clip_near

int blender::eevee::LightData::clip_near

— Shadow Data — Near clip distances. Float stored as orderedIntBitsToFloat for atomic operations.

Definition at line 207 of file eevee_light_shared.hh.

Referenced by blender::eevee::ShadowDirectional::end_sync(), and blender::eevee::ShadowPunctual::end_sync().

◆ color

packed_float3 blender::eevee::LightData::color

◆ filter_radius

float blender::eevee::LightData::filter_radius

Definition at line 212 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ flags

enum LightFlag blender::eevee::LightData::flags

Definition at line 198 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ light_set_membership

uint2 blender::eevee::LightData::light_set_membership

Definition at line 218 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ lod_bias

float blender::eevee::LightData::lod_bias

Definition at line 215 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ lod_min

float blender::eevee::LightData::lod_min

Definition at line 217 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ object_to_world

struct Transform blender::eevee::LightData::object_to_world

Normalized object to world matrix. Stored transposed for compactness. Used for shading and shadowing local lights, or shadowing sun lights. IMPORTANT: Not used for shading sun lights as this matrix is jittered.

Definition at line 189 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::debug_draw(), blender::eevee::ShadowPunctual::end_sync(), position(), blender::eevee::Light::sync(), x_axis(), y_axis(), and z_axis().

◆ point_power

float blender::eevee::LightData::point_power

Definition at line 194 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ power_factor

float4 blender::eevee::LightData::power_factor

Power depending on shader type. Referenced by LightingType.

Definition at line 192 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ resource_id

uint blender::eevee::LightData::resource_id

Definition at line 196 of file eevee_light_shared.hh.

Referenced by blender::eevee::LightModule::sync_light().

◆ shape_power

float blender::eevee::LightData::shape_power

Definition at line 193 of file eevee_light_shared.hh.

Referenced by blender::eevee::Light::sync().

◆ tilemap_index

int blender::eevee::LightData::tilemap_index

◆ type

enum eLightType blender::eevee::LightData::type

Light Type.

Definition at line 203 of file eevee_light_shared.hh.

Referenced by blender::ed::object::apply_objects_internal(), blender::eevee::LightModule::begin_sync(), blender::BKE_light_area(), blender::blo_do_versions_270(), blender::blo_do_versions_280(), blender::blo_do_versions_400(), blender::blo_do_versions_402(), blender::io::hydra::build_light_params_data_source(), determine_geom_type(), blender::do_versions_after_linking_400(), blender::io::usd::USDLightWriter::do_write(), blender::eevee::LightModule::end_sync(), blender::eevee::ShadowPunctual::end_sync(), blender::draw::gpencil::gpencil_light_pool_populate(), blender::io::fbx::FbxImportContext::import_lights(), blender::eevee::Light::Light(), blender::light_blend_write(), blender::light_emission_unify(), blender::draw::gpencil::light_power_get(), blender::io::hydra::light_prim_type(), blender::lineart_main_try_generate_shadow_v3(), blender::ed::object::object_is_target_compat(), blender::ed::object::object_light_add_exec(), blender::draw::overlay::Lights::object_sync(), blender::io::usd::USDLightReader::read_object_data(), blender::ed::object::select_grouped_lighttype(), blender::eevee::Light::shadow_ensure(), blender::eevee::Light::sync(), blender::eevee::LightModule::sync_light(), blender::draw::test_eevee_shadow_tilemap_amend(), blender::ed::outliner::tree_element_get_icon_from_id(), blender::WIDGETGROUP_light_area_poll(), blender::WIDGETGROUP_light_point_poll(), blender::WIDGETGROUP_light_spot_poll(), blender::WIDGETGROUP_light_target_draw_prepare(), and blender::WIDGETGROUP_light_target_poll().


The documentation for this struct was generated from the following file: