notes:

  • uv mapping for each type of mesh is decided by the maker.
  • quantization is to remove precision (round-off), like 0.002 being considered 0.0 if mod is used.
  • smoothstep is lerp of glsl.
  • signed values are -1,1; unsigned are 0,1.

different uv mapping for different geometries.