Commit graph

208 commits

Author SHA1 Message Date
Felipe Alfonso
ef942fb204 Premultiplied Alpha blending 2017-11-30 16:05:45 -03:00
Felipe Alfonso
500da5d07f Canvas GeometryMask rendering 2017-11-21 20:21:43 -03:00
Felipe Alfonso
320c0902f6 Small fixes with texture binding to MaskRenderer and WebGLRenderer. 2017-11-17 18:01:06 -03:00
Felipe Alfonso
579a1e5a26 Fixed binding null shader error. Particles can be used as mask without the need to render them to the screen 2017-11-16 12:47:23 -03:00
Michael Hadley
6d1b17258b Add flip capability to dynamic webgl & canvas tilemap renderers 2017-11-14 20:45:05 -06:00
Michael Hadley
a7424fa750 Progress on Tilemap - can now link tileset images and create layers 2017-11-11 10:38:52 -06:00
Richard Davey
ee9e6ef690 Particles with an alpha of zero are no longer rendered 2017-11-11 03:51:54 +00: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
05a06b28c0 Fix incorrect and unnecessary uses of closePath 2017-11-03 13:45:55 +01:00
Jower
f0e781f341 Fix undeclared variable caused by 6770113 2017-11-03 11:20:17 +01:00
Felipe Alfonso
9649347287 Static Tilemap WebGL Renderer now applies camera transform matrix correctly 2017-11-01 14:55:01 -03:00
Richard Davey
0d4b36f368 Now render from the correct list array. 2017-10-20 14:14:37 +01:00
Richard Davey
c268d44962 Renderer now renders the entire manager, saving a flush after each emitter. 2017-10-20 00:54:28 +01:00
Richard Davey
4f1bd5a3eb Tidying up 2017-10-17 21:32:14 +01:00
Richard Davey
6accb89ff0 The emitter can now set the blend mode and render target directly, also includes scrollFactor now 2017-10-17 04:18:05 +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
Richard Davey
daf8216369 Added new SKIP_CHECK blend mode 2017-10-17 04:17:04 +01:00
Richard Davey
a98b3544c7 Updated WebGL particle renderer to allow particles to have unique frames (within the same texture) 2017-10-16 22:15:51 +01:00
Richard Davey
8cf60b4c3e Tidying-up the namespace. 2017-10-11 17:06:13 +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
Richard Davey
a735709684 Removed backticks so it can build the dist file. 2017-09-22 12:07:07 +01:00
Felipe Alfonso
4d63cf7be0 Added more particle emitter properties and linear interpolation for particle's life 2017-09-19 21:21:55 -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
Richard Davey
e3334e5904 Moved LightLayer shaders into single files to avoid ES6 uglify errors with backtick operators. 2017-09-08 17:16:54 +01:00
Richard Davey
44c88a8e3f Fixed bug in DrawImage where it wouldn't correctly draw a flipped image with an origin not 0.5 2017-09-01 00:54:15 +01:00
Richard Davey
69376bf90f Working through canvas flip origin bug. 2017-08-31 17:26:39 +01:00
Felipe Alfonso
17c24ef586 Fixed canvas upload to gpu function 2017-08-18 12:31:39 -03:00
Felipe Alfonso
ff9534a14a Added higher threshold for warning emission on shader linking and validation 2017-08-16 08:57:46 -03:00
Felipe Alfonso
9856200fdf Added camera gameobject filtering 2017-08-15 16:42:04 -03:00
Felipe Alfonso
5f5ccd04b6 Lights work with camera zoom and also added support for light radius 2017-08-14 22:51:43 -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
Felipe Alfonso
b0c578477d Light layer setup 2017-08-02 23:06:13 -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
photonstorm
1950316d19 Added Phaser.FOREVER, Phaser.BlendModes and Phaser.ScaleModes consts. 2017-08-02 17:06:27 +01:00
photonstorm
24278c6f3b Fixed EarCut path.
Removed redundant TextureSource properties.
2017-08-01 16:56:39 +01:00
Felipe Alfonso
1c5da095f6 Fixed text rendering state leakage on webgl 2017-07-27 15:26:12 -04:00
Richard Davey
848ba127ab Exposed the alpha corner values and implemented into the Sprite Batch. 2017-07-25 22:28:02 +01: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
Richard Davey
cbbe152382 Fixed issue with Tint array being copied to the prototype 2017-07-05 01:21:47 +01: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
photonstorm
c86c2bae81 ESLint fixes. 2017-07-04 12:36:27 +01:00
photonstorm
67b11f1e35 Added Tint support to Tile Sprites. 2017-07-04 12:36:19 +01:00