Skip to content

v2.0.0

Compare
Choose a tag to compare
@rreusser rreusser released this 21 Nov 06:37
· 30 commits to main since this release

Features

  • Moves insertCaps from a compile-time to a runtime configuration option by lazily instantiating the four potential draw command variations (endpoints vs. interior segments, and insert caps true vs. false).
  • Adds reorder as a compile-time option. When true (default: true), it internally reorders draw calls for arrays of line props (drawLines([{...}, {...}, ...])) to avoid repeatedly changing the shader program. (See: examples/batching.html)