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#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.YieldContext
andRebindContext
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.New Features
WebGLSnapshot
(used in snapshot functions) supports unpremultiplication, which is on by default. This removes dark fringes on text and objects with alpha.Filter
component:setFiltersAutoFocus
,setFiltersFocusContext
,setFiltersForceComposite
,setRenderFilters
.Transform#getWorldPoint
Layer#getDisplayList
DynamicTexture
andRenderTexture
changes:forceEven
parameter forces resolution to be divisible by 2.clear(x, y, width, height)
method now takes the listed optional parameters.Rectangle
now supports rounded corners.Physics.Matter.Components.Transform#scale
for setting scaleX and scaleY together.WebGLRenderer
reveals functions around context loss:setExtensions
setContextHandlers
dispatchContextLost
dispatchContextRestored
Tween#isNumberTween
Fixes
WebGLSnapshot
orientation.CaptureFrame
compatibility withLayer
andContainer
.Grid
using old methods. It was supposed to use 'stroke' just like otherShape
objects, not a unique 'outline'.@return
tag toFilterList#addBlend
(thanks @PhaserEditor2D!).RenderSteps
parameter propagation intoLayer
andContainer
. This resolves some missing render operations in complex situations.DynamicTexture
errors when rendering Masks.DrawingContext
now 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