Premultiply textures.
Implement WebGL drawPattern.