Skip to content

0.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@leikareipa leikareipa released this 26 Aug 23:58
· 65 commits to master since this release

Changelog

  • Non-perspective-correct interpolation now corrects for perspective only along the Y axis, rather than none at all
    • This produces less severe texture warping, but still some of it, which may be the aesthetic you're looking for
    • About 10% faster than full correction, whereas the old method was slower than full correction
  • Points and lines now have optimized raster paths
    • Wireframe rendering without depth buffering is 25% faster
  • Point and line rasterizers now (or for now) ignore the fragment buffer
  • Can now build a module-format distributable, in addition to the global variant
  • Vertex shaders now receive the render state object as an argument
  • Pixel shaders now receive only the render state object as an argument
    • You now need to manually pass useFragmentBuffer: true in the render options if a pixel shader intends to access the fragment buffer
  • Rngon.color now has convenience aliases for CSS color names (e.g. Rngon.color.hotpink)
  • matrix is now exposed in the public API
  • Tweaked the presentation of various render samples, and added a texture-painting sample
  • The first mip level of a texture is now a direct reference to the base texture data
  • Refactored the API reference manual
  • Refactoring of source code