Improved
Phaser v4.0.0 Beta 6
Additions
- Add Filter support to
Layer. - Allow
RenderTextureto automatically re-render.DynamicTexture#preserve()allows you to keep the command buffer for reuse after rendering.DynamicTexture#callback()allows you to run callbacks during command buffer execution.RenderTexture.setTextureMode()allows you to set the RenderTexture to automatically re-render during the render loop.
Fixes and Eliminations
- Fix
roundPixelshandling in many places, mostly by removing it from irrelevant situations.- Remove
TransformMatrix#setQuadparameterroundPixels, as it is no longer used.
- Remove
- Filters are correctly destroyed along with their owners, unless
ignoreDestroyis enabled. This supports multi-owner Filter controllers. - WebGLRenderer destroys itself properly.
- Remove unnecessary transform related to camera scroll.
- Remove references to Mesh.
- Fix UV coordinates in
Shader. Shader#setTextures()now replaces the texture array, rather than adding to it.- Fix
SpriteGPULayer#getMember(), which previously multiplied the index by 4. - Fix
flipX/flipYinFilter#focusFilters. - Fix
BatchHandlerQuad#run()parametertintFill, which was set as a Number but should be used as a Boolean. - Eliminate rounding in
Camera#preRender().