Blender V5.3
eevee::light Namespace Reference

Namespaces

namespace  culling

Classes

struct  ClosureStack
struct  ClosureStack< false >
struct  ClosureStack< true >
struct  EvalCtx
struct  Resources
struct  ShapeDisplayFragOut
struct  ShapeDisplayVertOut
struct  VisibleLightIterator

Enumerations

enum  LightIteratorPhase : uint { LIGHT_ITER_PHASE_INIT = 0 , LIGHT_ITER_PHASE_DIRECTIONAL = 1 , LIGHT_ITER_PHASE_LOCAL = 2 , LIGHT_ITER_PHASE_END = 3 }

Functions

template void light::foreach< culling::NoCullCtx, LightRenderData > (const LightRenderData &, culling::NoCullCtx &, LightRenderData &)
template void light::foreach_visible< culling::WithCullCtx, LightRenderData > (const LightRenderData &, float2, float, culling::WithCullCtx &, LightRenderData &)
void eval_single_closure (sampler2DArray util_tx, LightData light, LightVector lv, LightShape shape, ClosureLight &cl, float attenuation, float shadow)
template void foreach_visible< EvalCtx< true >, LightEvalData > (const LightRenderData &, float2, float, EvalCtx< true > &, LightEvalData &)
template void foreach_visible< EvalCtx< false >, LightEvalData > (const LightRenderData &, float2, float, EvalCtx< false > &, LightEvalData &)
EvalCtx< true > init_from_reflect_ctx (EvalCtx< false > ctx)
uint bitfield_mask (uint bit_width, uint bit_min)
uint zbin_mask (uint word_index, uint zbin_min, uint zbin_max)
int culling_z_to_zbin (float scale, float bias, float z)
template<typename CallbackT, typename ResourceT>
void foreach (const LightRenderData &srt, CallbackT &cb, ResourceT &res)
template<typename CallbackT, typename ResourceT>
void foreach_visible (const LightRenderData &srt, float2 pixel, float linear_view_z, CallbackT &cb, ResourceT &res)
float power_get (LightData light, LightingType type)
bool light_linking_affects_receiver (uint2 light_set_membership, uchar receiver_light_set)
int shadow_directional_coverage_get (int level)
void shadow_setup_main (Resources &srt, const Uniform &uni, const Sampling &sampling, const uint3 global_id)
float3 shape_display_light_position_get (const ViewMatrices view, LightData light, float2 quad_pos)
float3 shape_display_far_plane_position_get (const ViewMatrices view, float2 ndc_pos)
float2 shape_display_quad_position_get (int vertex_id)
void shape_display_vert (const draw::View &views, const LightRenderData &lrd, const int vertex_id, ShapeDisplayVertOut &v_out, float4 &out_position)
void shape_display_frag (const draw::View &views, const LightRenderData &lrd, const UnifiedVolumeData &volumes, const Uniform &uni, const float4 frag_co, const ShapeDisplayVertOut &v_out, ShapeDisplayFragOut &frag_out)
template void light::foreach_visible< shadow::usage::TagPixelCtx, shadow::usage::TagUsage > (const LightRenderData &, float2, float, shadow::usage::TagPixelCtx &, shadow::usage::TagUsage &)
template void light::foreach< shadow::usage::TagSurfelCtx, shadow::usage::TagUsage > (const LightRenderData &, shadow::usage::TagSurfelCtx &, shadow::usage::TagUsage &)
template void foreach_visible< volume::LightEvalCtx, volume::Scatter > (const LightRenderData &, float2, float, volume::LightEvalCtx &, volume::Scatter &)

Variables

PipelineCompute shadow_setup (shadow_setup_main)
PipelineGraphic shape_display (shape_display_vert, shape_display_frag)

Enumeration Type Documentation

◆ LightIteratorPhase

Enumerator
LIGHT_ITER_PHASE_INIT 
LIGHT_ITER_PHASE_DIRECTIONAL 
LIGHT_ITER_PHASE_LOCAL 
LIGHT_ITER_PHASE_END 

Definition at line 55 of file eevee_light_iter.bsl.hh.

Function Documentation

◆ bitfield_mask()

uint eevee::light::bitfield_mask ( uint bit_width,
uint bit_min )

Definition at line 15 of file eevee_light_iter.bsl.hh.

References bitfield_mask(), and mask().

Referenced by bitfield_mask(), and zbin_mask().

◆ culling_z_to_zbin()

int eevee::light::culling_z_to_zbin ( float scale,
float bias,
float z )

◆ eval_single_closure()

◆ foreach()

◆ foreach_visible()

◆ foreach_visible< EvalCtx< false >, LightEvalData >()

template void eevee::light::foreach_visible< EvalCtx< false >, LightEvalData > ( const LightRenderData & ,
float2 ,
float ,
EvalCtx< false > & ,
LightEvalData &  )

References float, and foreach_visible().

◆ foreach_visible< EvalCtx< true >, LightEvalData >()

template void eevee::light::foreach_visible< EvalCtx< true >, LightEvalData > ( const LightRenderData & ,
float2 ,
float ,
EvalCtx< true > & ,
LightEvalData &  )

References float, and foreach_visible().

◆ foreach_visible< volume::LightEvalCtx, volume::Scatter >()

◆ init_from_reflect_ctx()

◆ light::foreach< culling::NoCullCtx, LightRenderData >()

template void eevee::light::light::foreach< culling::NoCullCtx, LightRenderData > ( const LightRenderData & ,
culling::NoCullCtx & ,
LightRenderData &  )

◆ light::foreach< shadow::usage::TagSurfelCtx, shadow::usage::TagUsage >()

◆ light::foreach_visible< culling::WithCullCtx, LightRenderData >()

template void eevee::light::light::foreach_visible< culling::WithCullCtx, LightRenderData > ( const LightRenderData & ,
float2 ,
float ,
culling::WithCullCtx & ,
LightRenderData &  )

◆ light::foreach_visible< shadow::usage::TagPixelCtx, shadow::usage::TagUsage >()

template void eevee::light::light::foreach_visible< shadow::usage::TagPixelCtx, shadow::usage::TagUsage > ( const LightRenderData & ,
float2 ,
float ,
shadow::usage::TagPixelCtx & ,
shadow::usage::TagUsage &  )

◆ light_linking_affects_receiver()

bool eevee::light::light_linking_affects_receiver ( uint2 light_set_membership,
uchar receiver_light_set )

◆ power_get()

float eevee::light::power_get ( LightData light,
LightingType type )

◆ shadow_directional_coverage_get()

int eevee::light::shadow_directional_coverage_get ( int level)

◆ shadow_setup_main()

void eevee::light::shadow_setup_main ( Resources & srt,
const Uniform & uni,
const Sampling & sampling,
const uint3 global_id )

◆ shape_display_far_plane_position_get()

float3 eevee::light::shape_display_far_plane_position_get ( const ViewMatrices view,
float2 ndc_pos )

◆ shape_display_frag()

◆ shape_display_light_position_get()

◆ shape_display_quad_position_get()

float2 eevee::light::shape_display_quad_position_get ( int vertex_id)

◆ shape_display_vert()

◆ zbin_mask()

uint eevee::light::zbin_mask ( uint word_index,
uint zbin_min,
uint zbin_max )

Definition at line 22 of file eevee_light_iter.bsl.hh.

References bitfield_mask(), max, min, and zbin_mask().

Referenced by foreach_visible(), and zbin_mask().

Variable Documentation

◆ shadow_setup

PipelineCompute eevee::light::shadow_setup(shadow_setup_main) ( shadow_setup_main )

◆ shape_display