texturing done (almost) right