Adds support for repeating textures.