Result images.
Use UV coords.
Extracted common functionality to separate file.
Added 3D versions of common functionality.
Very basic 3D shader. Barely more than renaming.
Things somewhat work in 3D.
3D works!
Support for placement matrix.