Commit graph

429 commits

Author SHA1 Message Date
Richard Davey
183ce1b96c BMP fix 2019-04-26 02:30:24 +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
9356744399 argument caps 2019-04-25 12:14:04 +01:00
Richard Davey
2ff76eb4b5 Removed un-needed Quad Pipeline and shaders 2019-04-25 12:13:09 +01:00
Richard Davey
72af4a21d1 Default shader 2019-04-25 03:16:46 +01:00
Richard Davey
9b4309b38c Added QuadShader Pipeline to the renderer 2019-04-25 03:16:39 +01:00
Richard Davey
2727408e7c Don't disable the vertex attribute if the location is invalid 2019-04-25 03:16:25 +01:00
Richard Davey
e0c22c5534 Added QuadShader Pipeline 2019-04-25 03:16:03 +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
12b6041d20 inverseAlpha support added back in and tidied up renderer 2019-04-24 14:51:39 +01:00
Richard Davey
1fc9b15ff1 Fixed Geometry Mask nesting issue. 2019-04-15 16:46:19 +01:00
Richard Davey
974ceb5654 Restore bitmap mask framebuffer 2019-04-12 18:36:47 +01:00
Richard Davey
f69cec7975 Improving support for child masking 2019-04-12 17:47:28 +01:00
Richard Davey
186970bd69 Render the Camera masks 2019-04-11 17:10:03 +01:00
Richard Davey
c188dfde12 Testing mask component on Camera 2019-04-10 18:10:03 +01:00
Richard Davey
42cb39749f Matter and Snapshot typedefs 2019-02-13 15:22:29 +00:00
Richard Davey
b50e1c78b5 Lots more jsdoc tweaks and improvements 2019-02-12 15:01:54 +00:00
Richard Davey
c85497b6c5 Fixing jsdocs 2019-02-12 11:59:31 +00:00
Richard Davey
cfe6452924 Don't set if game is being destroyed 2019-02-04 23:29:22 +00:00
Richard Davey
60542a25cc Numerous jsdoc and TS related fixes 2019-02-04 17:16:08 +00:00
Richard Davey
4f6f6ee72f Lots of jsdoc and type fixes 2019-01-31 12:19:01 +00:00
Richard Davey
f5106de6c5 Callback is now invoked in Image.onload to avoid race conditions. 2019-01-25 17:29:31 +00:00
Richard Davey
8f016ef983 Updating snapshot feature 2019-01-25 10:01:53 +00:00
Richard Davey
9142260307 Texture filter mode is now based on game anti-alias setting. 2019-01-24 14:23:24 +00:00
Richard Davey
f8f81a06f0
Merge pull request #4286 from gomachan7/fixup/apply_transparent_bg_on_webgl_renderer
Fix WebGLRenderer to apply transparent bg in config
2019-01-23 22:22:08 +00:00
Richard Davey
bc962c25dc All listeners use the new Events 2019-01-18 13:41:43 +00:00
Richard Davey
e6b74304b5 Added Camera pre and post render events. 2019-01-17 12:02:14 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
d7e7feed19 Dimensions are now set in the onResize handlers. 2019-01-11 16:44:08 +00:00
Richard Davey
44f69ea7fa Removed autoResize, tidied up the resize method and init. 2019-01-10 13:43:09 +00:00
Richard Davey
175af00c60 Stores the new resolution, should it change (unlikely, but ...) 2019-01-10 13:42:11 +00:00
Richard Davey
04ea2798e9 Use gameSize 2019-01-10 00:15:20 +00:00
gomachan_7
be562abd83 Fix WebGLRenderer to apply transparent bg in config 2019-01-10 02:17:53 +09:00
Richard Davey
b3aeee0bd1 Use the new size properties 2019-01-09 17:13:22 +00:00
Richard Davey
41286b5170 Make sure we bind the framebuffer and pipeline in the boot step 2018-12-18 14:58:42 +00:00
Richard Davey
8eebe518ad Added optional drawingBufferHeight argument to scissor methods. 2018-12-18 13:36:05 +00:00
Richard Davey
4b1ea8db9b WebGLRenderer.preRender now calls gl.clearColor in order to restore the background clear color in case something, like a Render Texture, has changed it. 2018-12-18 13:04:26 +00:00
Richard Davey
8f873c87af Clears the framebuffer at the start of every render. 2018-12-18 11:32:36 +00:00
Richard Davey
7e732452eb Fixed an issue in WebGLRenderer.setScissor where it was possible to try and compare the scissor size to a non-current scissor, if called outside of the render loop (i.e. from RenderTexture.fill) 2018-12-18 10:22:59 +00:00
Richard Davey
83f3f9cdeb Changed scissor order. 2018-12-13 14:24:49 +00:00
Richard Davey
cc164b5399 Fixed camera background in WebGL. 2018-12-13 10:25:53 +00:00
Richard Davey
bbe95d96d9 Added jsdocs for #4137 2018-12-12 11:58:58 +00:00
Richard Davey
d823c66597
Merge pull request #4137 from sercant/master
Fix rotating normal map bug (issue #3870)
2018-12-12 11:52:27 +00:00
Richard Davey
05ffb5312f Updated docs 2018-12-12 11:09:00 +00:00
Richard Davey
4b27b37a0c Added texture and unit arguments to batchQuad and batchTri, fixing the y2k bug. 2018-12-12 11:08:52 +00:00
Richard Davey
bacff65177 Refactoring texture batch creation 2018-12-11 15:00:12 +00:00
Richard Davey
5683713253 Added flush argument 2018-12-11 14:59:50 +00:00
Richard Davey
8e495da71d Fixed currentScissor assignment order of operation 2018-12-08 11:37:26 +00:00
Richard Davey
2780babe10 Final Doc Jam merge 2018-12-03 15:16:23 +00:00
Richard Davey
6f8759c186 Whenever Camera.roundPixels was enabled it would use a bitwise operation to truncate the float (x |= 0) - this has been replaced across all files that used it, with a call to Math.round instead. This gives far better results when zooming cameras both in and out of a Scene, stopping thin gaps appearing between closely packed Game Objects. 2018-11-30 10:27:25 +00:00