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

#include <eevee_light.hh>

Inherits blender::eevee::LightData, and blender::blender::NonCopyable.

Public Member Functions

 Light ()
 Light (Light &&other)
 ~Light ()
Public Member Functions inherited from blender::eevee::LightData
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 Member Functions inherited from blender::blender::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
NonCopyable & operator= (const NonCopyable &other)=delete
 NonCopyable ()=default
 NonCopyable (NonCopyable &&other)=default
NonCopyable & operator= (NonCopyable &&other)=default

Public Attributes

bool initialized = false
bool used = false
ShadowDirectional * directional = nullptr
ShadowPunctual * punctual = nullptr
uint2 shadow_set_membership = uint2(0)
Public Attributes inherited from blender::eevee::LightData
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  

Light Object

void sync (ShadowModule &shadows, float4x4 object_to_world, char visibility_flag, const blender::Light *la, uint64_t light_set_membership, uint64_t shadow_set_membership, float threshold)
void shadow_ensure (ShadowModule &shadows)
void shadow_discard_safe (ShadowModule &shadows)
void debug_draw ()

Detailed Description

Definition at line 51 of file eevee_light.hh.

Constructor & Destructor Documentation

◆ Light() [1/2]

blender::eevee::Light::Light ( )
inline

Definition at line 63 of file eevee_light.hh.

References blender::eevee::LIGHT_SUN, and blender::eevee::LightData::type.

Referenced by Light().

◆ Light() [2/2]

blender::eevee::Light::Light ( Light && other)
inline

Definition at line 71 of file eevee_light.hh.

References Light().

◆ ~Light()

blender::eevee::Light::~Light ( )
inline

Definition at line 83 of file eevee_light.hh.

References blender::BLI_assert(), directional, and punctual.

Member Function Documentation

◆ debug_draw()

◆ shadow_discard_safe()

void Light::shadow_discard_safe ( ShadowModule & shadows)

◆ shadow_ensure()

◆ sync()

void Light::sync ( ShadowModule & shadows,
float4x4 object_to_world,
char visibility_flag,
const blender::Light * la,
uint64_t light_set_membership,
uint64_t shadow_set_membership,
float threshold )

Member Data Documentation

◆ directional

ShadowDirectional* blender::eevee::Light::directional = nullptr

Pointers to source Shadow. Type depends on LightData::type.

Definition at line 57 of file eevee_light.hh.

Referenced by shadow_discard_safe(), shadow_ensure(), and ~Light().

◆ initialized

bool blender::eevee::Light::initialized = false

◆ punctual

ShadowPunctual* blender::eevee::Light::punctual = nullptr

Definition at line 58 of file eevee_light.hh.

Referenced by shadow_discard_safe(), shadow_ensure(), and ~Light().

◆ shadow_set_membership

uint2 blender::eevee::Light::shadow_set_membership = uint2(0)

Used by shadow sync.

Definition at line 61 of file eevee_light.hh.

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

◆ used

bool blender::eevee::Light::used = false

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