Blender V5.3
eevee::shadow::usage Namespace Reference

Classes

struct  SurfelCapture
struct  TagPixelCtx
struct  TagSurfelCtx
struct  TagUsage
struct  TagUsageOpaque
struct  TagUsageSurfel
struct  TagUsageTransparent
struct  VertIn
struct  VertOut

Functions

void tag_usage_opaque (TagUsageOpaque &srt, const HiZ &hiz, const draw::View &views, TagUsage &tag, const uint3 global_id)
void tag_usage_surfel (TagUsageSurfel &srt, TagUsage &tag, SurfelCapture &capture, const uint3 global_id)
void tag_usage_volume (UnifiedVolumeProperties &volume, TagUsage &tag, const Uniform &uni, const draw::View &views, const Sampling &sampling, const HiZ &hiz, const uint3 global_id)
float nextafter (float value)
void tag_usage_vert (TagUsageTransparent &srt, TagUsage &, const int inst_index, const draw::View &views, const draw::Model &models, draw::Resource &res_id, const int vert_id, const VertIn &v_in, VertOut &v_out, float4 &out_position)
void tag_usage_frag (TagUsageTransparent &srt, const draw::View &views, const draw::Model &models, TagUsage &tag, const HiZ &hiz, const VertOut interp, const float4 frag_co)

Detailed Description

Virtual shadow-mapping: Usage tagging

Shadow pages are only allocated if they are visible.

Function Documentation

◆ nextafter()

float eevee::shadow::usage::nextafter ( float value)

◆ tag_usage_frag()

◆ tag_usage_opaque()

void eevee::shadow::usage::tag_usage_opaque ( TagUsageOpaque & srt,
const HiZ & hiz,
const draw::View & views,
TagUsage & tag,
const uint3 global_id )

This pass scan the depth buffer and tag all tiles that are needed for light shadowing as needed.

Definition at line 246 of file eevee_shadow_tag_usage.bsl.hh.

References eevee::light::foreach_visible(), global_invocation_id, in_range_inclusive, ViewMatrices::point_screen_to_view(), ViewMatrices::point_view_to_world(), resource_table, tag_usage_opaque(), texelFetch(), and float3::z.

Referenced by tag_usage_opaque().

◆ tag_usage_surfel()

void eevee::shadow::usage::tag_usage_surfel ( TagUsageSurfel & srt,
TagUsage & tag,
SurfelCapture & capture,
const uint3 global_id )

This pass iterates the surfels buffer and tag all tiles that are needed for light shadowing as needed.

Definition at line 293 of file eevee_shadow_tag_usage.bsl.hh.

References eevee::light::foreach(), global_invocation_id, index, resource_table, and tag_usage_surfel().

Referenced by tag_usage_surfel().

◆ tag_usage_vert()

◆ tag_usage_volume()

void eevee::shadow::usage::tag_usage_volume ( UnifiedVolumeProperties & volume,
TagUsage & tag,
const Uniform & uni,
const draw::View & views,
const Sampling & sampling,
const HiZ & hiz,
const uint3 global_id )