wait for texture to load before creating three materials