Added option to invert normals.