Blender V5.3
eevee_depth_of_field_scatter.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  eevee::dof::scatter::VertOut
struct  eevee::dof::scatter::Resources
struct  eevee::dof::scatter::FragOut

Namespaces

namespace  eevee
namespace  eevee::dof
namespace  eevee::dof::scatter

Functions

float4 linearstep (float p0, float p1, float4 v)
void eevee::dof::scatter::vert_main (Resources &srt, const int inst_id, const int vert_id, VertOut &v_out, float4 &out_position)
void eevee::dof::scatter::frag_main (Resources &srt, const float4 frag_co, const VertOut &v_out, FragOut &frag_out)

Variables

PipelineGraphic eevee_depth_of_field_scatter (eevee::dof::scatter::vert_main, eevee::dof::scatter::frag_main)

Function Documentation

◆ linearstep()

float4 linearstep ( float p0,
float p1,
float4 v )

Scatter pass: Use sprites to scatter the color of very bright pixel to have higher quality blur.

We only scatter one quad per sprite and one sprite per 4 pixels to reduce vertex shader invocations and overdraw.

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

References abs, linearstep(), and saturate.

Referenced by eevee::dof::scatter::frag_main(), and linearstep().

Variable Documentation

◆ eevee_depth_of_field_scatter