Phaser v4.0.0 Release Candidate 1 #7094
photonstorm
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Updates since beta 8:
Changes
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.Filtercomponent:setFiltersAutoFocus,setFiltersFocusContext,setFiltersForceComposite,setRenderFilters.Transform#getWorldPointLayer#getDisplayListDynamicTextureandRenderTexturechanges:forceEvenparameter forces resolution to be divisible by 2.clear(x, y, width, height)method now takes the listed optional parameters.Rectanglenow supports rounded corners.Physics.Matter.Components.Transform#scalefor setting scaleX and scaleY together.WebGLRendererreveals functions around context loss:setExtensionssetContextHandlersdispatchContextLostdispatchContextRestoredTween#isNumberTweenFixes
WebGLSnapshotorientation.CaptureFramecompatibility withLayerandContainer.Gridusing old methods. It was supposed to use 'stroke' just like otherShapeobjects, not a unique 'outline'.@returntag toFilterList#addBlend(thanks @PhaserEditor2D!).RenderStepsparameter propagation intoLayerandContainer. This resolves some missing render operations in complex situations.DynamicTextureerrors when rendering Masks.DrawingContextnow takes screen coordinates, and sets GL coordinates in theWebGLGlobalWrapper.This discussion was created from the release Phaser v4.0.0 Release Candidate 1.
Beta Was this translation helpful? Give feedback.
All reactions