Update to support multiple textures.