fixed computation of curvature, added another test & improved shader

thx to pb for all the help