Blender V5.3
eevee_surf_capture.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  eevee::SurfaceCapture

Namespaces

namespace  eevee

Functions

float4 closure_to_rgba_capture (KernelGlobals &kg, ShadingData &sd, Closure)
void eevee::surf_capture (KernelGlobals &kg, PipelineConstants &pipe, SurfaceCapture &srt, const Uniform &uni, const draw::View &views, const UtilityTexture &, const VertOutCommon &interp, const VertOutCurves &curves_interp, const VertOutPointcloud &ptcloud_interp, const float3 bary_co, const float4 frag_co, const bool front_face)

Function Documentation

◆ closure_to_rgba_capture()

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

Surface Capture: Output surface parameters to diverse storage.

This is a separate shader to allow custom closure behavior and avoid putting more complexity into other surface shaders.

Definition at line 18 of file eevee_surf_capture.bsl.hh.

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

Referenced by closure_to_rgba_capture().