Commit graph

85 commits

Author SHA1 Message Date
Richard Davey
61769526d4 Skip children that won't render 2017-12-15 04:07:16 +00:00
Felipe Alfonso
ea0c1ab81c Fixed shader so blending is applied properly. Textures now have a premultiplied alpha property flag and unpacking property is set at creation. 2017-12-06 20:52:09 -03:00
Felipe Alfonso
1c689639c1 Removed unnecessary check on setBlendMode 2017-12-01 18:56:44 -03:00
Felipe Alfonso
b1e49059ec Fixed alpha blending issue with textured renderer 2017-12-01 18:55:27 -03:00
Felipe Alfonso
ef942fb204 Premultiplied Alpha blending 2017-11-30 16:05:45 -03:00
Felipe Alfonso
320c0902f6 Small fixes with texture binding to MaskRenderer and WebGLRenderer. 2017-11-17 18:01:06 -03:00
Felipe Alfonso
a1957b9c6e BitmapMask rendering progress. Still missing blend mode support specifically for it to work with particles 2017-11-08 15:14:14 -03:00
Felipe Alfonso
f968913c79 BitmapMask rendering progress 2017-11-07 17:37:16 -03:00
Felipe Alfonso
85daa827aa Bitmap and Geometry Masking progress 2017-11-06 19:12:19 -03:00
Jower
f0e781f341 Fix undeclared variable caused by 6770113 2017-11-03 11:20:17 +01:00
Richard Davey
6770113aa0 Added SKIP_CHECK blend mode const and moved setBlendMode to handle it in the main loop 2017-10-17 04:17:28 +01:00
Felipe Alfonso
bc281871ac - Particle Emitter canvas renderer
- Camera Effects resets blend mode to avoid bug when dealing with custom blended game objects
2017-09-28 22:16:10 -03:00
Felipe Alfonso
6ccb6541d9 Particle Renderer + Basic Particle Movement 2017-09-17 17:13:40 -03:00
Felipe Alfonso
dc45945d99 WebGL Specific Game Objects work with restored context, except EffectLayer and RenderPass. That would require developer to rebind render targets and resources 2017-09-13 17:54:32 -03:00
Felipe Alfonso
de507de120 Light Layer restore state on gl context lost 2017-09-13 16:43:34 -03:00
Felipe Alfonso
a4e33f111b Previous resource deleted when gl context is lost 2017-09-13 16:11:40 -03:00
Felipe Alfonso
17c24ef586 Fixed canvas upload to gpu function 2017-08-18 12:31:39 -03:00
Felipe Alfonso
9856200fdf Added camera gameobject filtering 2017-08-15 16:42:04 -03:00
Richard Davey
0d3b8df879 Merge branch 'master' of https://github.com/photonstorm/phaser 2017-08-10 05:17:58 +01:00
Felipe Alfonso
2a3f966cb5 Light Layer update work in progress 2017-08-03 16:02:57 -04:00
Richard Davey
d3789a305e Revamped how blend modes are handled. Added ability to swap between blendFunc and blendFunSeparate. 2017-08-03 02:09:59 +01:00
Felipe Alfonso
1c5da095f6 Fixed text rendering state leakage on webgl 2017-07-27 15:26:12 -04:00
photonstorm
d804e056ed Renaming from State to Scene internally.
This is one monster update.
2017-07-14 14:50:51 +01:00
Felipe Alfonso
3afe6d82fa Fix text rendering when overlapped with other gameobjects in the display list 2017-07-12 16:55:57 -04:00
photonstorm
f79db37cda Updated to new class structure, fixed lots of ESLint errors and moved EarCut into the geom folder and used the un-minified and latest version. 2017-07-04 14:48:18 +01:00
photonstorm
5d1393b9dc Moved SnapShot feature into the renderer folder and updated paths. 2017-07-04 13:10:26 +01:00
Felipe Alfonso
755fa260c0 Added camera alpha for webgl 2017-06-28 12:47:24 -04:00
Felipe Alfonso
88e07a9c88 Render pass fix for setting texture 2017-06-28 05:22:48 -04:00
Richard Davey
fdb2e2f83e Added Camera.setBackgroundColor 2017-06-28 01:51:04 +01:00
photonstorm
22875376b7 Moved scissor values to object so they can be read from batches.
Almost got Dynamic Text working with scissor (doesn't restore correctly on exit).
2017-06-08 17:15:02 +01:00
Richard Davey
2cc3a391c4 WebGL createTexture respects config.pixelArt setting 2017-06-08 00:13:34 +01:00
Felipe Alfonso
dc035ddaab Tilemap Rendering 2017-06-01 17:05:50 -04:00
Felipe Alfonso
30ea09f0b0 Fixed issue with setting wrapping mode on textures 2017-05-22 10:44:05 -04:00
Felipe Alfonso
d216793595 Texture Filtering and Repeat property 2017-05-19 21:16:45 -04:00
Felipe Alfonso
d71d7d50bc Fixed a couple of bugs on Graphics renderer and added should Flush to all webgl renderers 2017-05-17 11:09:06 -04:00
Felipe Alfonso
7477eb5cf9 Snapshot implementation 2017-05-16 15:15:01 -04:00
Felipe Alfonso
f84f4e626c Graphics canvas texture generation 2017-05-10 21:24:57 -03:00
Felipe Alfonso
da9a6de007 Canvas TileSprite 2017-05-03 21:14:14 -03:00
Felipe Alfonso
4073db3551 TileSprite base and renderer 2017-04-25 19:09:13 -03:00
Felipe Alfonso
1742ec0f12 RenderPass Update 2017-04-20 15:06:57 -03:00
Felipe Alfonso
bcbec418b1 Fixed Graphics and Blitter issue with renderTarget 2017-04-13 12:45:01 -03:00
Felipe Alfonso
581fdb50ee RenderTarget added to renderable game objects 2017-04-11 10:15:38 -03:00
Felipe Alfonso
d08e23f4f4 Reset renderTarget to null when rendering camera effects 2017-04-10 16:15:18 -03:00
Felipe Alfonso
0370ebf15e Fixed clearing render target issue 2017-04-07 02:06:55 -03:00
Felipe Alfonso
b1b184aed4 render target dimensions don't affect viewport 2017-04-07 01:34:35 -03:00
Felipe Alfonso
8c479a56c0 Effect Layer 2017-04-06 22:49:15 -03:00
Felipe Alfonso
63a614ef74 fixed issues with Text rendering 2017-04-06 14:40:43 -03:00
Felipe Alfonso
aa8f0820c0 Resource clean up and adapted batches to allow shader swapping 2017-04-05 19:01:44 -03:00
Felipe Alfonso
85a3830f1a Shader resource creation added to webgl renderer 2017-04-05 14:59:59 -03:00
Felipe Alfonso
58e4912633 Moved uploadCanvasToGPU to WebGLRenderer 2017-03-21 17:45:57 -03:00