Blender V5.0
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 51 of file eevee_light.hh.

Constructor & Destructor Documentation

◆ Light() [1/2]

Definition at line 60 of file eevee_light.hh.

References blender::eevee::LIGHT_SUN.

Referenced by Light().

◆ Light() [2/2]

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

Definition at line 68 of file eevee_light.hh.

References Light().

◆ ~Light()

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

Definition at line 79 of file eevee_light.hh.

References BLI_assert, directional, and punctual.

Member Function Documentation

◆ debug_draw()

void Light::debug_draw ( )

◆ 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 57 of file eevee_light.hh.

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

◆ initialized

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

Definition at line 53 of file eevee_light.hh.

Referenced by sync(), and blender::eevee::LightModule::sync_light().

◆ 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().

◆ used


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