better environment texture handling