mipmapping for cpu renderer