Skip to content

Commit 0c02b8b

Browse files
Add v4 release candidate 1 CHANGELOG.
1 parent 1b638ea commit 0c02b8b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

changelog/4.0/CHANGELOG-v4.0-rc.1.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Version 4.0 - Release Candidate 1
2+
3+
Updates since beta 8:
4+
5+
## Changes
6+
7+
- Mask filter now uses current camera by default.
8+
- `GameObject#enableLighting` now 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.
9+
- `YieldContext` and `RebindContext` render 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.
10+
11+
## New Features
12+
13+
- `WebGLSnapshot` (used in snapshot functions) supports unpremultiplication, which is on by default. This removes dark fringes on text and objects with alpha.
14+
- Add chainable setter methods to `Filter` component: `setFiltersAutoFocus`, `setFiltersFocusContext`, `setFiltersForceComposite`, `setRenderFilters`.
15+
- All enhancements from Phaser v3 development have been merged. This includes:
16+
- `Transform#getWorldPoint`
17+
- `Layer#getDisplayList`
18+
- `DynamicTexture` and `RenderTexture` changes:
19+
- `forceEven` parameter forces resolution to be divisible by 2.
20+
- `clear(x, y, width, height)` method now takes the listed optional parameters.
21+
- `Rectangle` now supports rounded corners.
22+
- `Physics.Matter.Components.Transform#scale` for setting scaleX and scaleY together.
23+
- `WebGLRenderer` reveals functions around context loss:
24+
- `setExtensions`
25+
- `setContextHandlers`
26+
- `dispatchContextLost`
27+
- `dispatchContextRestored`
28+
- Improvements to tile handling for non-orthogonal tiles.
29+
- `Tween#isNumberTween`
30+
- Many other fixes and tweaks.
31+
32+
## Fixes
33+
34+
- Fix `WebGLSnapshot` orientation.
35+
- Fix filters rendering outside intended camera scissor area.
36+
- Fix reversion in BitmapText kerning.
37+
- Fix `CaptureFrame` compatibility with `Layer` and `Container`.
38+
- Fix `Grid` using old methods. It was supposed to use 'stroke' just like other `Shape` objects, not a unique 'outline'.
39+
- Add `@return` tag to `FilterList#addBlend` (thanks @phasereditor2d!).
40+
- Fix `RenderSteps` parameter propagation into `Layer` and `Container`. This resolves some missing render operations in complex situations.
41+
- Fix `DynamicTexture` errors when rendering Masks.
42+
- Fix camera transform matrix order issues, as seen when rendering through transformed cameras.
43+
- Fix GL scissor sometimes failing to update. The actual issue was, we were storing the screen coordinates, but applying GL coordinates, which can be different in different-sized framebuffers. `DrawingContext` now takes screen coordinates, and sets GL coordinates in the `WebGLGlobalWrapper`.

0 commit comments

Comments
 (0)