Blender V5.3
eevee::motion_blur::gather::Resources Struct Reference

#include <eevee_motion_blur.bsl.hh>

Public Member Functions

float4 motion_blur_sample_velocity (float2 uv)
float2 spread_compare (float center_motion_length, float sample_motion_length, float offset_length)
float2 depth_compare (float center_depth, float sample_depth)
float dir_compare (float2 offset, float2 sample_motion, float sample_motion_length)
float2 sample_weights (float center_depth, float sample_depth, float center_motion_length, float sample_motion_length, float offset_length)
void gather_sample (ViewMatrices view, float2 screen_uv, float center_depth, float center_motion_len, float2 offset, float offset_len, const bool next, Accumulator &accum)
void gather_blur (ViewMatrices view, float2 screen_uv, float2 center_motion, float center_depth, float2 max_motion, float ofs, const bool next, Accumulator &accum)

Public Attributes

const MotionBlurData & motion_blur_buf
sampler2DDepth depth_tx
sampler2D velocity_tx
sampler2D in_color_tx
const image2D in_tiles_img
image2D out_color_img

Detailed Description

Definition at line 354 of file eevee_motion_blur.bsl.hh.

Member Function Documentation

◆ depth_compare()

float2 eevee::motion_blur::gather::Resources::depth_compare ( float center_depth,
float sample_depth )
inline

Definition at line 379 of file eevee_motion_blur.bsl.hh.

References motion_blur_buf, and saturate.

Referenced by sample_weights().

◆ dir_compare()

float eevee::motion_blur::gather::Resources::dir_compare ( float2 offset,
float2 sample_motion,
float sample_motion_length )
inline

Definition at line 386 of file eevee_motion_blur.bsl.hh.

References dot().

Referenced by gather_sample().

◆ gather_blur()

void eevee::motion_blur::gather::Resources::gather_blur ( ViewMatrices view,
float2 screen_uv,
float2 center_motion,
float center_depth,
float2 max_motion,
float ofs,
const bool next,
Accumulator & accum )
inline

◆ gather_sample()

◆ motion_blur_sample_velocity()

float4 eevee::motion_blur::gather::Resources::motion_blur_sample_velocity ( float2 uv)
inline

◆ sample_weights()

float2 eevee::motion_blur::gather::Resources::sample_weights ( float center_depth,
float sample_depth,
float center_motion_length,
float sample_motion_length,
float offset_length )
inline

Definition at line 395 of file eevee_motion_blur.bsl.hh.

References depth_compare(), and spread_compare().

Referenced by gather_sample().

◆ spread_compare()

float2 eevee::motion_blur::gather::Resources::spread_compare ( float center_motion_length,
float sample_motion_length,
float offset_length )
inline

Definition at line 372 of file eevee_motion_blur.bsl.hh.

References saturate.

Referenced by sample_weights().

Member Data Documentation

◆ depth_tx

sampler2DDepth eevee::motion_blur::gather::Resources::depth_tx

Definition at line 356 of file eevee_motion_blur.bsl.hh.

Referenced by gather_sample().

◆ in_color_tx

sampler2D eevee::motion_blur::gather::Resources::in_color_tx

Definition at line 358 of file eevee_motion_blur.bsl.hh.

Referenced by gather_sample().

◆ in_tiles_img

const image2D eevee::motion_blur::gather::Resources::in_tiles_img

Definition at line 359 of file eevee_motion_blur.bsl.hh.

◆ motion_blur_buf

const MotionBlurData& eevee::motion_blur::gather::Resources::motion_blur_buf

◆ out_color_img

image2D eevee::motion_blur::gather::Resources::out_color_img

Definition at line 360 of file eevee_motion_blur.bsl.hh.

◆ velocity_tx

sampler2D eevee::motion_blur::gather::Resources::velocity_tx

Definition at line 357 of file eevee_motion_blur.bsl.hh.

Referenced by motion_blur_sample_velocity().


The documentation for this struct was generated from the following file: