Switch layers to use VTF instead of UBO.
279287b
Using vertex texture fetch simplifies the CPU-side batching code, and is also a performance win. Also clean up the texture binding APIs / code.