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

#include <eevee_light.hh>

Inherits LightData, and blender::NonCopyable.

Public Member Functions

 Light ()
 
 Light (Light &&other)
 
 ~Light ()
 
- Public Member Functions inherited from blender::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
 
NonCopyableoperator= (const NonCopyable &other)=delete
 
 NonCopyable ()=default
 
 NonCopyable (NonCopyable &&other)=default
 
NonCopyableoperator= (NonCopyable &&other)=default
 

Public Attributes

bool initialized = false
 
bool used = false
 
ShadowDirectionaldirectional = nullptr
 
ShadowPunctualpunctual = nullptr
 
- Public Attributes inherited from LightData
float4 direction
 
float4 specular_color
 
float4 diffuse_color_wrap
 

Light Object

void sync (ShadowModule &shadows, float4x4 object_to_world, char visibility_flag, const ::Light *la, const LightLinking *light_linking, float threshold)
 
void shadow_ensure (ShadowModule &shadows)
 
void shadow_discard_safe (ShadowModule &shadows)
 
void debug_draw ()
 

Detailed Description

Definition at line 43 of file eevee_light.hh.

Constructor & Destructor Documentation

◆ Light() [1/2]

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

Definition at line 53 of file eevee_light.hh.

References blender::eevee::LIGHT_SUN.

◆ Light() [2/2]

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

Definition at line 61 of file eevee_light.hh.

◆ ~Light()

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

Definition at line 72 of file eevee_light.hh.

References BLI_assert, directional, and punctual.

Member Function Documentation

◆ debug_draw()

void Light::debug_draw ( )

Definition at line 323 of file eevee_light.cc.

References drw_debug_sphere, and blender::eevee::transform_location().

◆ shadow_discard_safe()

void Light::shadow_discard_safe ( ShadowModule & shadows)

◆ shadow_ensure()

◆ sync()

Member Data Documentation

◆ directional

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

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

Definition at line 49 of file eevee_light.hh.

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

◆ initialized

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

Definition at line 45 of file eevee_light.hh.

Referenced by sync().

◆ punctual

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

Definition at line 50 of file eevee_light.hh.

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

◆ used

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

Definition at line 46 of file eevee_light.hh.


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