Commit graph

12 commits

Author SHA1 Message Date
Richard Davey
d5c558b8e4 Render Texture now uses unified drawing functions 2018-08-03 19:17:39 +01:00
Richard Davey
9f44896a3f The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list. 2018-08-03 01:29:18 +01:00
Richard Davey
7fe9167657 The alpha value is now always set for Render Textures in canvas mode, regardless of the previous alpha value in the renderer 2018-07-29 12:23:52 +01:00
Richard Davey
ec5bd1912e GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases. 2018-07-19 13:19:02 +01:00
Richard Davey
90ba2608fa Added in Camera alpha support to all canvas renderers 2018-06-25 16:24:08 +01:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
Felipe Alfonso
96b8db4685 Added parentMatrix to all canvas rendering functions 2018-04-04 13:14:55 -03:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
4c59d9a35d Added jsdocs 2018-03-05 02:24:47 +00:00
Richard Davey
ef3df149c6 Fixed RenderTexture flipY 2018-03-05 01:42:37 +00:00
Felipe Alfonso
7c96e93c47 Canvas RenderTexture rendering added 2018-02-23 21:05:15 -03:00
Felipe Alfonso
ef8e92dc01 RenderTexture base webgl implementation 2018-02-23 00:44:22 -03:00