Blender V5.3
eevee_surf_depth.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  eevee::SurfaceDepthFragOut< with_velocity >
struct  eevee::SurfaceDepthFragOut< false >
struct  eevee::SurfaceDepthFragOut< true >

Namespaces

namespace  eevee

Functions

float4 closure_to_rgba_depth (KernelGlobals &kg, ShadingData &sd, Closure)
template<bool with_velocity>
void eevee::surf_depth (KernelGlobals &kg, PipelineConstants &pipe, const Uniform &uni, const Sampling &sampling, const UtilityTexture &, const draw::View &views, const GeometryVelocity &geo_vel, const float4 frag_co, const VertOutCommon &interp, const VertOutCurves &curves_interp, const VertOutPointcloud &ptcloud_interp, const VertOutGSplat &gsplat_interp, const VertOutVelocity &motion, const VertOutClipPlane &clip_interp, SurfaceDepthFragOut< with_velocity > &frag_out, const float3 bary_co, const bool front_face)
template void eevee::surf_depth< true > (KernelGlobals &, PipelineConstants &, const Uniform &, const Sampling &, const UtilityTexture &, const draw::View &, const GeometryVelocity &, const float4, const VertOutCommon &, const VertOutCurves &, const VertOutPointcloud &, const VertOutGSplat &, const VertOutVelocity &, const VertOutClipPlane &, SurfaceDepthFragOut< true > &, const float3, const bool)
template void eevee::surf_depth< false > (KernelGlobals &, PipelineConstants &, const Uniform &, const Sampling &, const UtilityTexture &, const draw::View &, const GeometryVelocity &, const float4, const VertOutCommon &, const VertOutCurves &, const VertOutPointcloud &, const VertOutGSplat &, const VertOutVelocity &, const VertOutClipPlane &, SurfaceDepthFragOut< false > &, const float3, const bool)

Function Documentation

◆ closure_to_rgba_depth()

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

Depth shader that can stochastically discard transparent pixel.

Definition at line 17 of file eevee_surf_depth.bsl.hh.

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

Referenced by closure_to_rgba_depth().