On Optimal Resampling of View and Illumination Dependent Textures