Richard Davey
d3536fb138
Merge pull request #5574 from samme/fix/canvas-particle-emitter-follow
...
Fix wrong particle position when following a sprite with Canvas renderer
2021-02-22 10:29:25 +00:00
samme
3248971411
Fix wrong particle follow position
...
Fixes #5457
2021-02-21 11:30:32 -08:00
Richard Davey
6b960464b5
Merge pull request #5504 from endel/patch-1
...
allow to customize pointerEvents for dom elements
2021-02-16 11:29:26 +00:00
Richard Davey
c5766a68a4
Merge pull request #5540 from samme/feature/shape-setDisplaySize
...
Add Phaser.GameObjects.Shape#setDisplaySize()
2021-02-16 11:18:23 +00:00
Richard Davey
4b3a0009ee
Merge pull request #5559 from mattjennings/fix-5558
...
Fixes #5558
2021-02-16 10:56:01 +00:00
Richard Davey
a05da72739
DOMElementCSSRenderer
will now return early if src.node
doesn't exist or is null, rather than trying to extract the style
property from it. Fix #5566
2021-02-16 10:48:35 +00:00
Matt Jennings
72fd48abc4
safely check for renderer in TileSprite
2021-02-11 16:00:24 -06:00
Richard Davey
b40010b86b
Fixed JSDocs
2021-02-04 16:27:02 +00:00
Richard Davey
aaf51dc7ce
The LightsManager.addPointlight
method now has full JSDocs and the attenuation
parameter.
2021-02-04 16:19:19 +00:00
Richard Davey
79468de255
ESLint fix
2021-02-04 16:11:09 +00:00
samme
a8e05cec3e
Add Phaser.GameObjects.Shape#setDisplaySize()
2021-01-30 09:33:21 -08:00
Rex
ee16c63987
Fix parameter name bug
2021-01-29 09:32:45 +08:00
Rex
7f610eef98
Fix input bug
2021-01-21 11:13:33 +08:00
Richard Davey
332d9c85cb
BlitterWebGLRenderer
was calling an out-dated function setRenderDepth
instead of addToRenderList
2021-01-14 17:09:04 +00:00
Endel Dreyer
1919bbdfb8
allow to customize pointerEvents for dom elements
2021-01-14 10:54:29 -03:00
Richard Davey
9116eddf99
Some Bitmap Text fonts were not rendering under Canvas due to the way in which the texture offset was calculated. It now uses the __BASE
frame to get the texture offset, rather than the first frame in the set. Fix #5462 #5501
2021-01-14 11:06:04 +00:00
Andrew Cunningham
724c2f59d5
Update Mesh.js documentation around panZ
...
This adds warnings about orthographic and perspective cameras, documents setOrtho & panZ with sane (ish) default values for the default projection matrix, and updates the example code in the file.
These changes could go further; I would love it if the default mechanisms "agreed" (so that feeding it z=0 vertex values "just worked"), but that's probably a difficult backwards facing change.
Inspired by https://github.com/photonstorm/phaser/issues/5380 .
2021-01-12 14:28:52 -05:00
Richard Davey
15908ce271
getPostPipeline will now return an array of them all if there is more than one instance
2021-01-11 17:17:00 +00:00
Richard Davey
1c8662dc1f
Call addToRenderList
2021-01-07 14:52:08 +00:00
Richard Davey
00d8b6a009
Invoke camera.addToRenderList
method
2021-01-07 12:31:31 +00:00
Richard Davey
3db77c7a10
Use Scene Display List if not available
2021-01-07 12:22:09 +00:00
Richard Davey
c124d4c0a6
Merge pull request #5467 from rexrainbow/improve-postfx-pipeline
...
Remove a type of Post Pipeline instances, not only a single instance
2021-01-04 16:14:48 +00:00
Richard Davey
a19e4770df
The Layer
Game Object has been given all of the missing properties and methods from Game Object to make the class shapes identical. This includes the properties parentContainer
, tabIndex
, input
and body
. You cannot set any of these properties, they are ignored by the Layer itself. It also includes the methods: setInteractive
, disableInteractive
and removeInteractive
. A Layer cannot be enabled for input or have a physics body. Fix #5459
2021-01-04 16:11:33 +00:00
Richard Davey
5457e463b1
Use displayList.getIndex
2021-01-04 12:43:34 +00:00
Richard Davey
2a38e78bb4
Layer.destroy
will now call destroy
on all of its children as well. Layer.destroy
will now emit the DESTROY
event at the start of the method. Fix #5466
2021-01-04 11:59:00 +00:00
Richard Davey
1b0649ed34
Fixed issue causing Cannot read property 'pipelines' of null
to be thrown if using 3.50 with the HEADLESS renderer. Fix #5468
2021-01-04 11:22:00 +00:00
Rex
60c42016b6
Remove a type of Post Pipeline instances, not only a single instance
2020-12-25 17:05:50 +08:00
Richard Davey
3e9350ed05
Added JSDocs
2020-12-14 14:07:57 +00:00
Richard Davey
4fb03907ba
Stricter removal
2020-12-14 13:50:44 +00:00
Richard Davey
cbe1a3219a
JSDoc improvements
2020-12-14 13:33:42 +00:00
Richard Davey
e08b5386dd
Removed follow from render code
2020-12-14 11:51:16 +00:00
Richard Davey
7ff4c5958b
Fire particle from follower position. Fix #5437
2020-12-14 11:46:19 +00:00
Richard Davey
f5376b20a4
BitmapText Drop Shadow working. Fix #5446
2020-12-14 09:34:32 +00:00
Richard Davey
0cd192eec8
Swapped for Color component. Fix #5435
2020-12-11 15:56:21 +00:00
Richard Davey
1a65f50a25
Added new renderDirect
hook which RenderTexture can use. Fix #5431
2020-12-11 13:40:53 +00:00
Richard Davey
9412a93fdb
Remove log
2020-12-11 11:46:28 +00:00
Richard Davey
59e89fa788
All Game Objects will now listen for ADDED_TO_SCENE and REMOVED_FROM_SCENE events and call the handlers. Therefore, removed GO specific implementations.
2020-12-11 11:44:21 +00:00
Richard Davey
32440cb238
Defaults to renderer aspect ratio to help with issues like #5444
2020-12-11 11:05:47 +00:00
Richard Davey
1857c3f2da
Send dimensions and reset scissors
2020-12-10 18:07:41 +00:00
Richard Davey
73a0c9d2ce
Remove unused code
2020-12-09 18:04:53 +00:00
Richard Davey
e03c514b03
Fixed WebGL erase mode
2020-12-09 15:55:11 +00:00
Richard Davey
16d4d11939
Final fixes to blitFrame
2020-12-09 15:20:09 +00:00
Richard Davey
1cb6d525be
New blitFrame working. Now to adjust when src > target height.
2020-12-09 14:08:24 +00:00
Richard Davey
827851d02c
Update RenderTexture.js
2020-12-08 17:54:37 +00:00
Richard Davey
0c4eec0fd9
Now using new Render Target approach (texture blend still need to be added)
2020-12-08 17:38:42 +00:00
Richard Davey
f18d615b40
Update SpriteWebGLRenderer.js
2020-12-08 16:15:16 +00:00
Richard Davey
3154bf2e6f
Update Container.js
2020-12-07 13:11:49 +00:00
Richard Davey
79d252589f
Update Rope.js
2020-12-07 13:09:45 +00:00
Richard Davey
d6d5c09552
The Shader
Game Object now supports being able to use a Render Texture as a sampler2D
texture on the shader. Fix #5423
2020-12-07 12:19:42 +00:00
Richard Davey
15a6f50d2c
Fixed functions not appearing in the namespace. Fix #5432
2020-12-07 10:11:47 +00:00
Richard Davey
08b304372c
Made the Render Events global, not WebGL specific and allowed Canvas Renderer to emit them too
2020-12-04 15:07:26 +00:00
Richard Davey
a7f246a241
Swap queue order
2020-12-04 12:55:26 +00:00
Richard Davey
e0ae7ef14e
Update TransformMatrix.js
2020-12-04 12:00:31 +00:00
Richard Davey
edc076674e
New Resize handler. Fix #5412
2020-12-04 11:59:47 +00:00
Richard Davey
4d872e2e9d
RenderTexture.erase
has never worked when using the Canvas Renderer and a texture frame, only with Game Objects. It now works with both. Fix #5422
2020-12-03 15:46:26 +00:00
Richard Davey
6bb6ff8ef4
Updated JSDocs to clarify issue. Fix #4692
2020-12-03 15:14:34 +00:00
Richard Davey
38b6d83462
Fixed Canvas Alpha RenderTexture issue. Fix #5426
2020-12-03 14:48:21 +00:00
Richard Davey
8ff62d40af
Moved event emitter. Fix #5427
2020-12-03 14:34:32 +00:00
Richard Davey
0d6d7848cd
No need for dirty property
2020-12-03 14:31:54 +00:00
Richard Davey
103b91a69d
Add attenuation parameter and fixed color divisor
2020-12-03 12:52:36 +00:00
Richard Davey
8174ec2daf
Fixed light distance and max test
2020-12-03 11:11:41 +00:00
Richard Davey
732b188691
Removed light pool, used RGB object, much better light culling.
2020-12-02 17:57:12 +00:00
Richard Davey
97fd175e73
Extends Circle, because it is! Removed loads of pointless setters.
2020-12-02 17:56:53 +00:00
Richard Davey
639b9bfc84
Added beginDraw
, batchDraw
, batchDrawFrame
and endDraw
methods for full batch control over the drawing.
2020-12-02 16:07:58 +00:00
Richard Davey
35146e72ed
Removed Light Layer and moved Point Light to its own Game Object
2020-12-02 13:48:38 +00:00
Richard Davey
375d6fa196
Updated docs
2020-12-02 13:15:27 +00:00
Richard Davey
361704f048
Only reset post pipeline if it has one. Fix #5421
2020-12-02 12:23:59 +00:00
Richard Davey
9f8f76c690
Removed unused property
2020-12-02 12:23:40 +00:00
Richard Davey
1868a749cb
Enable Lights Plugin again
2020-12-02 11:11:34 +00:00
Richard Davey
e29626ab2c
Testing Light Layer
2020-12-01 17:24:30 +00:00
Richard Davey
ce6a81c97d
Updated JSDocs
2020-12-01 17:23:53 +00:00
Richard Davey
c1bf08de70
New Point Light class
2020-12-01 17:23:42 +00:00
Richard Davey
35829bcf0d
Added removePostPipeline
. Fix #5419
2020-11-30 10:07:41 +00:00
Richard Davey
15b47e6a54
Testing new Light Layer
2020-11-30 09:46:28 +00:00
Rex
cdfee008ec
Typo
2020-11-29 20:29:38 +08:00
Richard Davey
41a0c192a4
Fix #5413
2020-11-28 15:42:23 +00:00
Richard Davey
6dd40df318
Update LayerCreator.js
2020-11-27 15:14:10 +00:00
Richard Davey
3ec63c6dec
Only remove from displayList if set. Fix #5413
2020-11-27 15:14:04 +00:00
Richard Davey
e96cbde8d6
Added new displayList
property and Layer documentation
2020-11-27 11:13:59 +00:00
Richard Davey
aa06070644
Added the new Layer Game Object
2020-11-26 16:21:21 +00:00
Richard Davey
fdae90089c
Use the new depthList property
2020-11-26 16:21:09 +00:00
Richard Davey
e5f9066072
GameObjects.Components.Depth.depthList
is a new property that all Game Objects that have the Depth Component now have. It contains a reference to the List responsible for managing the depth sorting of the Game Object. This is typically the Scene Display List, but can also be a Layer. It allows the Depth component to queue a depth sort directly on the list it belongs to now, rather than just the Scene.
2020-11-26 16:20:54 +00:00
Richard Davey
a2f0a815d6
Reset textures before draw
2020-11-26 14:20:01 +00:00
Richard Davey
c8cdf9fde2
Fixed Render Texture crop
2020-11-26 11:28:25 +00:00
Richard Davey
0ee1338765
Better post pipeline call (less code)
2020-11-26 09:51:40 +00:00
Richard Davey
09c49ac288
Fixed emitter mask pipeline
2020-11-24 14:52:57 +00:00
Richard Davey
d2e2e86ef1
Updated accessor
2020-11-23 16:22:11 +00:00
Richard Davey
2e4cfde102
Updated post pipeline
2020-11-23 16:18:30 +00:00
Richard Davey
ec5da6930c
Added post pipeline support to all Game Objects
2020-11-23 16:17:13 +00:00
Richard Davey
28d925b875
JSDoc fixes
2020-11-23 15:06:45 +00:00
Richard Davey
417f7684c3
More integer to number changes
2020-11-23 10:32:00 +00:00
Richard Davey
3f511a73cd
Replace integer[] with number[]
2020-11-23 10:23:10 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
5ca5a63038
Testing new Lights
2020-11-23 10:19:31 +00:00
Richard Davey
30c2eb5d0e
Ability to link Post Pipeline to owner object
2020-11-20 17:29:42 +00:00
Richard Davey
78b75efb8c
JSDoc fix
2020-11-20 16:03:03 +00:00
Richard Davey
df3b7d5f79
JSDoc fixes
2020-11-20 15:47:35 +00:00
Richard Davey
ebf6b254dd
Fixed JSDocs
2020-11-20 15:31:43 +00:00
Richard Davey
b64f2cc4d0
Added ability to skip post pipeline per object
2020-11-20 15:18:19 +00:00
Richard Davey
e7b85b08af
Fixed batchLight
2020-11-20 13:05:32 +00:00