Richard Davey
809b8a41d9
The WebGLRenderer.updateCanvasTexture
method will now set gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL
to true, which should stop issues where you update a Text Game Object, having added a Render Texture or Spine Game Object to the Scene after it, which switches the PMA setting. Fix #5064
2020-08-26 00:19:19 +01:00
Richard Davey
76ce778688
Update CHANGELOG.md
2020-08-26 00:14:20 +01:00
Richard Davey
798fa8f5fd
The SpineFile
will no longer throw a warning if adding a texture into the Texture Manager that already exists. This allows you to have multiple Spine JSON use the same texture file, however, it also means you now get no warning if you accidentally load a texture that exists, so be careful with your keys! Fix #4947
2020-08-26 00:14:16 +01:00
Richard Davey
2c79753ef3
Update CHANGELOG.md
2020-08-26 00:00:19 +01:00
Richard Davey
07ea83ac39
Update package-lock.json
2020-08-26 00:00:17 +01:00
Richard Davey
e501da684f
New SpineContainer defs
2020-08-26 00:00:09 +01:00
Richard Davey
413a148a31
Updated docs and Creator param
2020-08-26 00:00:00 +01:00
Richard Davey
a9c32d4efa
The SpineGameObject.setAnimation
method will now use the trackIndex
parameter if ignoreIfPlaying
is set and run the check against this track index. Fix #4842
2020-08-25 23:59:42 +01:00
Richard Davey
f97afe16e7
New Spine Plugin build
2020-08-25 18:30:07 +01:00
Richard Davey
6c26e27286
Update copy-to-examples.js
2020-08-25 18:29:58 +01:00
Richard Davey
8c54efd81c
Update CHANGELOG.md
2020-08-25 18:28:49 +01:00
Richard Davey
2531b67dd1
New Container factory functions
2020-08-25 18:28:45 +01:00
Richard Davey
ce8039cb90
Spine Game Objects now use -1 as their default blend mode, which means 'skip setting it'.
2020-08-25 18:28:35 +01:00
Richard Davey
0704611ee4
SpineContainer
is a new Game Object available via this.add.spinecontainer
to which you can add Spine Game Objects only. It uses a special rendering function to retain batching, even across multiple container or Spine Game Object instances, resulting in dramatically improved performance over using regular Containers. Fix #5174
2020-08-25 18:27:55 +01:00
Richard Davey
791704febe
WebGLRenderer.finalType
is a new boolean property that signifies if the current Game Object being rendered is the final one in the list.
2020-08-25 18:24:42 +01:00
Richard Davey
482f016898
A Spine Game Object with setVisible(false)
will no longer still cause internal gl commands and is now properly skipped, retaining any current batch in the process. Fix #5174
2020-08-25 18:23:27 +01:00
Richard Davey
0bbe67dafd
When using the GameObjectCreator
for Containers
you can now specify the children
property in the configuration object.
2020-08-25 15:51:11 +01:00
Richard Davey
d2517bf5f6
Updated date
2020-08-25 15:36:08 +01:00
Richard Davey
314c7975f8
Updates JSDocs. Fix #4979
2020-08-25 14:54:30 +01:00
Richard Davey
b1929b8579
The Spine Plugin will now work in HEADLESS mode without crashing. Fix #4988
2020-08-25 14:47:03 +01:00
Richard Davey
d38cae6682
Tweaked RT draw fix
2020-08-25 14:22:48 +01:00
Richard Davey
de0133e3cc
Spine Game Objects can now be rendered to Render Textures. Fix #5184
2020-08-25 14:11:37 +01:00
Richard Davey
2008035ca1
New Spine 3.8.95 plugin build
2020-08-25 13:43:08 +01:00
Richard Davey
9bbdf8d0bc
New Spine 3.8.95 runtimes
2020-08-25 13:28:34 +01:00
Richard Davey
4e28e4417e
Use MultiPipeline
2020-08-25 13:27:57 +01:00
Richard Davey
0f1c917d6c
Updated docs
2020-08-25 13:27:38 +01:00
Richard Davey
075ef7bb5e
ESLint fix
2020-08-25 13:27:32 +01:00
Richard Davey
1d7a576fd6
Because of course a new webpack version means new config rules
2020-08-25 13:27:14 +01:00
Richard Davey
ca99c4564f
Added reset
property to Bind to get new vertex attrib locations
2020-08-25 13:24:56 +01:00
Richard Davey
e4ec0bd182
Bumped version (and added source-map)
2020-08-25 13:24:20 +01:00
Richard Davey
7d1ad38b4a
Updated shader names
2020-08-25 13:23:59 +01:00
Richard Davey
f6f7a25788
Update CHANGELOG.md
2020-08-25 09:54:12 +01:00
Richard Davey
7e572c3577
Improves JSDocs
2020-08-25 09:54:09 +01:00
Richard Davey
1f50b49eff
Earcut has now been exposed and is available via Geom.Polygon.Earcut
and is fully documented.
2020-08-25 09:54:03 +01:00
Richard Davey
408c828a6c
Update CHANGELOG.md
2020-08-24 19:51:22 +01:00
Richard Davey
795a190ce3
The BaseShader
default vertex shader now includes the outTexCoord
vec2 varying, mapped to be the same as that found in the pipeline shaders. Fix #5120
2020-08-24 19:51:20 +01:00
Richard Davey
4d8cff1fb3
Update CHANGELOG.md
2020-08-24 19:34:08 +01:00
Richard Davey
cda4f05fb9
Merge pull request #5272 from jaabberwocky/fix-animationmanager-docs
...
Fix typo for documentation on create method of AnimationManager
2020-08-24 19:33:33 +01:00
Richard Davey
979ef9c71d
Update CHANGELOG.md
2020-08-24 19:26:23 +01:00
Richard Davey
157be83f7c
The Container
will now test to see if any Game Object added to it is already on the display list, or not, and emit its ADDED and REMOVED events accordingly. Fix #5267 #3876
2020-08-24 19:26:19 +01:00
Richard Davey
3bd91ea3de
Update ParticleManagerCreator.js
2020-08-24 19:24:11 +01:00
Richard Davey
a9072cadf2
Sprite
, Rope
, ParticleEmitterManager
, Extern
and DOMElement
now all override the addedToScene
and removedFromScene
callbacks to handle further set-up tasks.
2020-08-24 19:24:02 +01:00
Richard Davey
f4259deb37
DOMElementFactory
, ExternFactory
, ParticleManagerFactor
, RopeFactory
and SpriteFactory
all no longer add the objects to the Update List, this is now handled by the ADDED events instead.
2020-08-24 19:22:58 +01:00
Richard Davey
7b83d31cae
The Update List
now uses the new checkQueue
property to ensure no duplicate objects are on the active list.
2020-08-24 19:21:35 +01:00
Richard Davey
7f5e4d4538
ProcessQueue.checkQueue
is a new boolean property that will make sure only unique objects are added to the Process Queue.
2020-08-24 19:21:01 +01:00
Richard Davey
19c4980c5b
GameObjectFactory.events
is a new property that references the Scene's Event Emitter. This is now used internally.
2020-08-24 19:20:20 +01:00
Richard Davey
0b9dd4aae7
GameObjectCreator.events
is a new property that references the Scene's Event Emitter. This is now used internally.
2020-08-24 19:19:19 +01:00
Richard Davey
671c92e450
Added addedToScene
and removedFromScene
methods
...
* `GameObject.addedToScene` is a new method that custom Game Objects can use to perform additional set-up when a Game Object is added to a Scene. For example, Sprite uses this to add itself to the Update List.
* `GameObject.removedFromScene` is a new method that custom Game Objects can use to perform additional tear-down when a Game Object is removed from a Scene. For example, Sprite uses this to remove themselves from the Update List.
* Game Objects no longer automatically remove themselves from the Update List during `preDestroy`. This should be handled directly in the `removedFromScene` method now.
2020-08-24 19:18:29 +01:00
Richard Davey
bc93416ec7
Added events property and new add and remove callbacks
...
* `DisplayList.events` is a new property that references the Scene's Event Emitter. This is now used internally.
* `DisplayList.addChildCallback` is a new method that overrides the List callback and fires the new ADDED events.
* `DisplayList.removeChildCallback` is a new method that overrides the List callback and fires the new REMOVED events.
2020-08-24 19:15:53 +01:00
Richard Davey
ae4ed0ac54
Expose the new events
2020-08-24 19:13:18 +01:00