Improved
Phaser v4.0.0 Release Candidate 1
Updates since beta 8:
Changes
- Mask filter now uses current camera by default.
GameObject#enableLightingnow works even if the scene light manager is not enabled. The light manager must still be enabled for lights to render, but the game object flag can be set at any time.YieldContextandRebindContextrender nodes now unbind all texture units. These nodes are used for external renderer compatibility. An external renderer could change texture bindings, leading to unexpected textures being used, so we force texture rebind.
New Features
WebGLSnapshot(used in snapshot functions) supports unpremultiplication, which is on by default. This removes dark fringes on text and objects with alpha.- Add chainable setter methods to
Filtercomponent:setFiltersAutoFocus,setFiltersFocusContext,setFiltersForceComposite,setRenderFilters. - All enhancements from Phaser v3 development have been merged. This includes: