refractoring for textures