mourner / icomesh

Fast JavaScript icosphere mesh generation library for WebGL visualizations
https://observablehq.com/@mourner/fast-icosphere-mesh
ISC License
55 stars 4 forks source link

Add equirectangular UV mapping #8

Closed mourner closed 5 years ago

mourner commented 5 years ago

Closes #4. Turned out to be much trickier than I thought, but seems to work correctly. Unfortunately it's a 30% performance hit, and not everyone needs equirectangular uvs, so it's disabled by default (icomesh(order, true) to generate). @MaxGraey anything I missed in terms of performance?

mourner commented 5 years ago

@MaxGraey both don't seem to make any difference in the bench.

MaxGraey commented 5 years ago

ok, in that case I don't see other places when we could improve something)