Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.07 KB

NOTES.md

File metadata and controls

20 lines (17 loc) · 1.07 KB

TODO 1.0

  • Add docs for API and supported Canvas2D features.
  • Add overloaded context methods for 3D space (adding z parameter to moveTo, lineTo, translate ...).
  • Add example for 3D space and perspective projection.
  • Use Uint32Array for elements if buffer size exceeds 16 bit limit and extension is enabled.
  • Add method to destroy/release all resource buffers.
  • Fix viewport relative thickness.
  • Allow custom vertex and fragment shader input (as well as other draw command parameters).
  • Export vertex transform GLSL method for custom vertex shaders.
  • Add example for custom shaders.
  • Add support for fill in 2d mode (will require separate resources and shader).
  • Allow intermediate lineWidth changes (divergent from Canvas2D behavior, but a nice feature).

TODO future

  • Investigate memory optimizations for line start / end position duplication.
  • Add parameter for configuring segment precision (for arc).
  • Fix UV coordinates for skewed/mitered edges.
  • Allow creating a fill without a stroke.