Skip to main content

Module motion_blur

Module motion_blur 

Source
Expand description

Velocity-based motion blur pass.

High-velocity glyphs are sampled multiple times along their screen-space velocity vector with decreasing opacity, creating realistic motion streaks. The blur is:

  1. Proportional to screen-space velocity magnitude
  2. Directional (samples along the velocity vector)
  3. Weighted by a falloff curve (more opacity near the actual position)
  4. Optional: camera motion blur (blur entire frame by camera delta)

The velocity buffer is a CPU-side 2-channel texture (screen-space velocity per pixel).

Structs§

MotionBlurParams
Motion blur pass parameters.
VelocityBuffer
Per-pixel screen-space velocity (in UV units/frame).

Enums§

BlurQuality
Quality setting for blur sampling.

Functions§

blur_sample_uvs
Compute sample UV offsets along a velocity vector.
sample_weight
Compute the opacity weight for the i-th sample in a blur of N samples.