changelog/v4/4.0-rc/CHANGELOG-v4.0-rc.1.md
Updates since beta 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.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.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#getWorldPointLayer#getDisplayListDynamicTexture and RenderTexture 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:
setExtensionssetContextHandlersdispatchContextLostdispatchContextRestoredTween#isNumberTweenWebGLSnapshot orientation.CaptureFrame compatibility with Layer and Container.Grid using old methods. It was supposed to use 'stroke' just like other Shape objects, not a unique 'outline'.@return tag to FilterList#addBlend (thanks @phasereditor2d!).RenderSteps parameter propagation into Layer and Container. This resolves some missing render operations in complex situations.DynamicTexture errors when rendering Masks.DrawingContext now takes screen coordinates, and sets GL coordinates in the WebGLGlobalWrapper.