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

Classes

struct  DofSample
struct  DofNeighborhoodMinMax
struct  Resources

Functions

float luma_weight (float luma)
float bilateral_weight (float reference_coc, float sample_coc)
DofSample amend_history (DofNeighborhoodMinMax bbox, DofSample history, DofSample src)
void comp_main (Resources &srt, const uint3 global_id, const uint3 local_id)

Detailed Description

Temporal Stabilization of the Depth of field input. Corresponds to the TAA pass in the paper. We actually duplicate the TAA logic but with a few changes:

  • We run this pass at half resolution.
  • We store CoC instead of Opacity in the alpha channel of the history.

This is and adaption of the code found in eevee_film_lib.glsl.

Inputs:

  • Output of setup pass (half-resolution). Outputs:
  • Stabilized Color and CoC (half-resolution).

Function Documentation

◆ amend_history()

◆ bilateral_weight()

float eevee::dof::setup::stabilize::bilateral_weight ( float reference_coc,
float sample_coc )

◆ comp_main()

◆ luma_weight()

float eevee::dof::setup::stabilize::luma_weight ( float luma)