Blender V5.3
eevee_surf_shadow.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  eevee::SurfShadow

Namespaces

namespace  eevee

Functions

float4 closure_to_rgba_shadow (KernelGlobals &kg, ShadingData &sd, Closure)
void eevee::surf_shadow (KernelGlobals &kg, PipelineConstants &pipe, SurfShadow &srt, const Uniform &uni, const draw::View &views, const Sampling &sampling, const UtilityTexture &, const VertOutCommon &interp, const VertOutShadow &shadow_iface, const VertOutShadowClipping &shadow_clip, const VertOutCurves &curves_interp, const VertOutPointcloud &ptcloud_interp, const VertOutGSplat &gsplat_interp, const float3 bary_co, const bool front_face, const float4 frag_co)

Function Documentation

◆ closure_to_rgba_shadow()

float4 closure_to_rgba_shadow ( KernelGlobals & kg,
ShadingData & sd,
Closure  )

Virtual Shadow map output.

Meshes are rasterize onto an empty frame-buffer. Each generated fragment then checks which virtual page it is supposed to go and load the physical page address. If a physical page exists, we then use atomicMin to mimic a less-than depth test and write to the destination texel.

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

References average(), Closure, closure_to_rgba_shadow(), closure_weights_reset(), saturate, and ShadingData::transmittance.

Referenced by closure_to_rgba_shadow().