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

Video Cube

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

Video Cube raycasts a rotating cube in screen space and maps the live video onto its faces. Areas outside the cube show a dark background mixed with the source.

Controls

Control Type Default What It Does
Spin Speed float 1.0 Cube rotation speed.
Cube Scale float 0.85 Cube size.
Face Zoom float 1.0 Scale of video mapped onto each face.
Background Mix float 0 Amount of source video visible in the background.

Tips

  • Lower Background Mix for a more isolated object.
  • Increase Face Zoom if the mapped video feels too wide on each face.
  • Keep Cube Scale below the maximum if you want the full object visible.