Blender V5.3
eevee::dof::setup::reduce Namespace Reference

Classes

struct  Resources

Functions

float fast_luma (float3 color)
void comp_main (Resources &srt, const uint3 global_id, const uint3 local_id)

Detailed Description

Reduce copy pass: filter fireflies and split color between scatter and gather input.

NOTE: The texture can end up being too big because of the mipmap padding. We correct for that during the convolution phase.

Inputs:

  • Output of setup pass (half-resolution) and reduce downsample pass (quarter res). Outputs:
  • Half-resolution padded to avoid mipmap misalignment (so possibly not matching input size).
  • Gather input color (whole mip chain), Scatter rect list, Signed CoC (whole mip chain).

Function Documentation

◆ comp_main()

◆ fast_luma()

float eevee::dof::setup::reduce::fast_luma ( float3 color)

Definition at line 526 of file eevee_depth_of_field_setup.bsl.hh.

References fast_luma().

Referenced by fast_luma().