Richard Davey
6484bc3607
Make it clear in the docs that you cannot mix blend modes and bitmap masks. Fix #4853
2020-09-24 09:36:15 +01:00
Richard Davey
5f28ff64a2
New clearMask
and createMask
methods and tidied up structure
2020-09-23 17:59:17 +01:00
Richard Davey
c6f533b872
Fixed legacy interpolation parameters
2020-09-23 17:55:29 +01:00
Richard Davey
e450bf2f1f
Swap to using constants for pipeline names
2020-09-09 13:05:18 +01:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
f4002471d7
Updated context lost / restored handlers
2019-07-17 16:38:00 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
b22f5ce5fd
Improved jsdocs
2019-05-01 12:59:05 +01:00
Richard Davey
08f4a0ccf4
Tidying up
2019-05-01 02:10:38 +01:00
Richard Davey
84e898fd90
Fixed nested bitmap mask issue
2019-04-29 14:45:54 +01:00
Richard Davey
ac1cc1762d
Use new cam mask object
2019-04-29 14:28:45 +01:00
Richard Davey
6f639ddec2
Preparing to store level state
2019-04-29 13:21:23 +01:00
Richard Davey
28b1a170ab
Fixed null mask issue
2019-04-29 13:04:34 +01:00
Richard Davey
902d04d55e
Move to functions so we can call from outside the class
2019-04-26 19:14:06 +01:00
Richard Davey
93dabaa34e
Store and restore previous framebuffer
2019-04-26 19:13:55 +01:00
Richard Davey
6e70f0e19c
Shaders now work with camera masks and can have their own geometry masks
2019-04-26 01:53:34 +01:00
Richard Davey
f64d0a935b
Geometry Masks are now batched. Previously, using the same mask on multiple Game Objects would create brand new stencil operations for every single Game Object, causing performance to tank. Now, the mask is only set if it's different from the previously masked object in the display list, allowing you to mask thousands of Game Objects and retain batching through-out.
2019-04-24 16:45:31 +01:00
Richard Davey
1f0a516c77
GeometryMask.setInvertAlpha
is a new method that allows you to set the invertAlpha
property in a chainable call.
2019-04-24 15:00:16 +01:00
Richard Davey
12b6041d20
inverseAlpha support added back in and tidied up renderer
2019-04-24 14:51:39 +01:00
Richard Davey
2bd45865d4
Stack restore working. Time to try invertAlpha.
2019-04-24 14:38:24 +01:00
Richard Davey
964e5a2da5
Not sure we need the stack at all - commenting out for now
2019-04-15 23:46:50 +01:00
Richard Davey
1fc9b15ff1
Fixed Geometry Mask nesting issue.
2019-04-15 16:46:19 +01:00
Richard Davey
0bdf1cc083
Allow geometry masks to work within bitmap masks
2019-04-12 18:36:31 +01:00
Richard Davey
c26311a9e4
Update GeometryMask.js
2019-04-12 17:47:02 +01:00
Richard Davey
47cd394ac5
Tidy jsdocs
2019-01-28 16:40:07 +00:00
Richard Davey
87a83d4ff8
Merge pull request #4301 from tfelix/feat-invert-geo-mask
...
Adds invertAlpha flag to GeometryMask
2019-01-23 21:52:16 +00:00
Thomas Felix
e1125dfd5b
Adds invertAlpha flag to GeometryMask
...
Similiar to the invertAlpha flag on Bitmap Mask this flag if set to true
will esentially invert the function of the stencil buffer: non drawn
shapes will become invisible and drawn shapes will be visible.
2019-01-16 01:04:52 +01:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
4c4421c47f
Docjam merge
2018-10-19 12:32:43 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
e297b3272e
Added hundreds of new jsdoc descriptions
2018-10-01 11:35:01 +01:00
Richard Davey
96509e4ca4
Tidying p
2018-08-02 17:59:11 +01:00
Richard Davey
17653fcf7d
BitmapMask.destroy
will now remove the textures and framebuffers that it created from the WebGL Renderer as part of the destroy process. Fix #3771
2018-07-09 14:26:45 +01:00
Richard Davey
63ae8a5728
Swapped to gl.KEEP for further testing
2018-07-08 22:44:55 +01:00
Richard Davey
29aec01b6f
Bumping to 3.7.0
2018-05-04 18:51:02 +01:00
Richard Davey
ced2d34b34
BitmapMask and GeometryMask both have new destroy
methods which clear their references, freeing them for gc.
2018-04-23 00:13:04 +01:00
Felipe Alfonso
c232642a52
Parent matrix is applied to canvas context on each draw function
2018-04-04 14:05:59 -03:00
orblazer
37b6fc5862
Fix many multiple types
2018-03-20 15:58:02 +01:00
Richard Davey
a78651ab12
Removed un-used properties and fixed jsdoc types
2018-03-19 13:33:02 +00:00
orblazer
fa63a9090a
Update JSDoc on Display
2018-03-19 14:03:41 +01:00
Richard Davey
edf1aa7cc1
The onContextRestored
callback won't be defined any more unless the WebGL Renderer is in use in the following objects: BitmapMask, Static Tilemap, TileSprite and Text. This should allow those objects to now work in HEADLESS mode. Fix #3368
2018-03-12 13:37:13 +00:00
Felipe Alfonso
9dbb4db4c6
Added inverted alpha to bitmap mask
2018-02-23 14:09:27 -03:00
Richard Davey
50dac412be
eslint fixes and console removal
2018-02-16 19:08:50 +00:00
Richard Davey
86f00eeb52
eslint fixes
2018-02-16 18:17:51 +00:00
Richard Davey
ae3cd50356
Fixed jsdocs
2018-02-12 21:39:26 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Richard Davey
00382bf059
Added jsdocs.
2018-01-26 02:20:33 +00:00
Felipe Alfonso
ba280c7517
BitmapMask and GeometryMask are rendering correctly
2018-01-25 15:43:19 -03:00