You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG-v3.50.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Due to the huge amount of work that has taken place in this area, all of the pip
10
10
*`TextureTintStripPipeline` is now called the `RopePipeline`.
11
11
*`ForwardDiffuseLightPipeline` is now called the `LightPipeline`.
12
12
13
+
There is also the new `GraphicsPipeline`. Previously, the `TextureTintPipeline` was responsible for rendering all Sprites, Graphics and Shape objects. Now, it only renders Sprites. All Graphics and Shapes are handled by the new `GraphicsPipeline` which uses its own shaders.
14
+
13
15
To match the new pipeline names, the shader source code has also been renamed.
14
16
15
17
*`ForwardDiffuse.frag` is now called `Light.frag`.
@@ -18,6 +20,7 @@ To match the new pipeline names, the shader source code has also been renamed.
18
20
19
21
Other pipeline changes are as follows:
20
22
23
+
* None of the shaders or pipelines use the `uViewMatrix` and `uModelMatrix` uniforms any longer. These were always just plain identity matrices, so there is no point spending CPU and GPU time to set them as uniforms, or use them in the shaders. Should you need these uniforms, you can add them to your own custom pipelines.
21
24
*`Types.Renderer.WebGL.WebGLPipelineConfig` is a new TypeDef that helps you easily configure your own Custom Pipeline when using TypeScript and also provides better JSDocs.
22
25
*`Types.Renderer.WebGL.WebGLPipelineAttributesConfig` is a new TypeDef that helps you easily configure the attributes for your own Custom Pipelines when using TypeScript and also provides better JSDocs.
23
26
* All pipelines will now work out the `renderer` property automatically, so it's no longer required in the config.
@@ -696,6 +699,7 @@ Since v3.0.0 the Game Object `render` functions have received a parameter called
696
699
*`Cameras.Scene2D.Events.FOLLOW_UPDATE` is a new Event that is dispatched by a Camera when it is following a Game Object. It is dispatched every frame, right after the final Camera position and internal matrices have been updated. Use it if you need to react to a camera, using its most current position and the camera is following something. Fix #5253 (thanks @rexrainbow)
697
700
*`Types.Core.PipelineConfig` is a new configuration object that you can set in the Game Config under the `pipeline` property. It allows you to define custom WebGL pipelines as part of the Game Config, so they're automatically installed and ready for use by all Scenes in your game. You can either set the `pipeline` object, or set it under the `render` sub-config.
698
701
*`Utils.Object.DeepCopy` is a new function that will recursively deep copy an array of object.
702
+
*`WebGLRenderer.resetProgram` is a new method that will rebind the current program, without flushing or changing any properties.
699
703
700
704
### Updates and API Changes
701
705
@@ -757,6 +761,8 @@ Since v3.0.0 the Game Object `render` functions have received a parameter called
757
761
* The `WebGLRenderer.deleteTexture` method has a new optional boolean parameter `reset` which allows you to control if the `WebGLRenderer.resetTextures` method is called, or not, after the texture is deleted.
758
762
*`Phaser.Scene.renderer` is a new property available in every Phaser.Scene that gives you a reference to the renderer, either Canvas or WebGL.
759
763
* The `WebGLRenderer.getMaxTextures` method has been removed. This is no longer needed as you can use the `WebGLRenderer.maxTextures` property instead.
764
+
* The `WebGLRenderer.setProgram` method now returns a boolean. `true` if the program was set, otherwise `false`.
765
+
* The `WebGLRenderer.setVertexBuffer` method now returns a boolean. `true` if the buffer was set, otherwise `false`.
0 commit comments