2
Shader Video Transform
Aiden edited this page 2026-05-08 19:03:26 +10:00

Video Transform

Field Value
Shader ID video-transform
Category Transform
Package shaders/video-transform/

Video Transform zooms, pans, and rotates the image by remapping output pixels back into source UV space.

Controls

Control Type Default What It Does
Zoom float 1.0 Scale of the source image. Values above 1 zoom in.
Pan vec2 [0, 0] Horizontal and vertical offset.
Rotation float 0 Rotation in degrees.
Edge Mode enum Black How samples outside the source frame are handled.
Outside Color color Black Fill color when Edge Mode is Black.

Edge Modes

Mode Result
Black Outside areas use Outside Color.
Clamp Holds the nearest edge pixel.
Wrap Wraps around the source image.
Mirror Mirrors the source image at edges.

Tips

  • Use this before keying or overlays if you need to line up the source first.
  • Use Clamp or Mirror for rotations where black corners are unwanted.
  • Use OSC on pan for XY pad control.