melonJS/melonJS: Release 15.0.0
Added
- Renderer: enable batch drawing for rectangle and polygon based primitive shapes
- Renderer: new base
Compositor
class that can be extended to create custom WebGL compositors
- Renderable: custom shader can now be set per renderable through a new
shader
property (experimental feature)
Changed
- Core: remove remaining polyfills related to pre-ECMAScript 2015 features (as melonJS 2 implementation base is now 100% ES6)
- Renderer: refactoring of the
WebGLCompositor
into a QuadCompositor
and PrimitiveCompitor
for Quad and Primitive composition
- Renderer: the vertex shader now takes a color attributes (as opposed to using an uniform in previous version)
- Renderer: attributes and default shader "definitions" for WebGL Compositor(s) are now directly passed through the constructor
- Text: Text object now use offscreen canvas by default to render text (this has been in beta for almost 2 years)
- Text: setting
lineWidth
to a value greater than 0 will now automatically stroke the text
- Text:
drawStroke()
is now deprecated in favour of the lineWidth
property
Fixed
- Geometry: fix
arcTo()
drawing a "looping" line between the start and end angle
- Input: fix
device.touch
wrongly returning true
on non-touch devices
- Renderer: fix binding of active shader when switching compositor
- Renderer: fix a TypeError exception on Safari Technology Preview
- Text: restore the text Stroke feature (was broken since a couple of releases)