fix texture coordinates

don't scale tex coord with (texmax - texmin), this is simply wrong..
set 3-d texture wrap mode to clamp_to_edge