tweak to texture generation to be more mathematically correct in Shape.cpp