Richard Davey
3c248d1cb4
Added in the FX Batch processor.
2016-10-30 22:57:29 +00:00
Richard Davey
5ec168a741
Added the multi texture batch processor, and tested it working.
2016-10-30 22:57:19 +00:00
Richard Davey
525c3e1a44
Removed all the redundant methods and added in the new batch processors.
2016-10-30 22:56:06 +00:00
Richard Davey
577b81580a
New batch system working.
2016-10-30 14:57:38 +00:00
Richard Davey
7051557e21
Merging the functions into the right classes. Nearly ready to test.
2016-10-29 21:29:16 +01:00
Richard Davey
44f7629cc8
Tidying up the new batch.
2016-10-29 14:41:43 +01:00
Richard Davey
30dea30601
Splitting the batch processors into their own classes.
2016-10-29 13:38:57 +01:00
photonstorm
863efde5ed
Getting ready to move the shaders out.
2016-10-28 18:35:23 +01:00
Richard Davey
f1760f961d
Working through splitting the Batch shader out of the manager, and into its own class. Got multi-shader swapping working.
2016-10-28 02:42:58 +01:00
Richard Davey
33c618d30e
Fixed issue where changing blend mode didn't correctly reset the batch.
2016-10-27 15:14:22 +01:00
photonstorm
fd3898742f
Added ability to toggle multi-texture support at run-time.
2016-10-25 16:44:23 +01:00
photonstorm
8de992175e
Renamed Renderer spriteBatch to just batch.
2016-10-25 14:30:29 +01:00
photonstorm
a271a52ec7
Added glLastUsed property to TextureSource.
2016-10-25 13:23:14 +01:00
Richard Davey
120b6eb2bd
Blend Modes work. More optimisations in the batch manager.
2016-10-25 03:57:34 +01:00
Richard Davey
dae0b2c124
Fixed Multi Texture support across split texture atlases.
2016-10-25 01:54:49 +01:00
Richard Davey
8ab7dc80dc
Sorted out swapping WebGL textures in a non-multi texture environment.
2016-10-25 01:40:16 +01:00
Richard Davey
4c6691863c
Fixed Multi Texture support in the new batch manager.
2016-10-25 00:41:45 +01:00
photonstorm
2af81bdfba
Masses of refactoring in BatchManager, making it as compact and fast as possible.
2016-10-24 17:14:10 +01:00
Richard Davey
3cb806c86e
New addVerts method working.
2016-10-23 11:25:44 +01:00
Richard Davey
7cfe3b3919
Exploring using addVert / addVerts to allow for shadow injection from the Game Objects layer.
2016-10-22 18:02:43 +01:00
photonstorm
4af0fb3247
Added offset vector back in.
2016-10-20 15:01:22 +01:00
photonstorm
ef5e23abad
Fixed TI attribute.
2016-10-20 14:33:31 +01:00
Richard Davey
35373da918
Adding texture index
2016-10-20 05:04:06 +01:00
photonstorm
64cd88f7b4
Trying out flash effect.
2016-10-19 17:17:26 +01:00
photonstorm
d19148aec0
Getting to the point where the 'render' call is just array population, no calculation.
2016-10-19 14:31:35 +01:00
photonstorm
079f81a639
Opps - blend mode needed :)
2016-10-19 14:30:33 +01:00
photonstorm
fb3bb4b32f
Refactored into new Base Game Object class, that Image and Sprite (and everything else) will now extend. Much more versatile, and a lot less code duplication.
2016-10-19 11:54:00 +01:00
Richard Davey
3d753255e4
Added support for the Background Color component values in the WebGL Sprite Batch shader.
2016-10-19 03:55:28 +01:00
Richard Davey
91ee135208
Fixed tint order and exposed via getters.
2016-10-19 03:10:30 +01:00
Richard Davey
5273799912
Added Color component to Stage and Image.
...
Added tint support into the Batch Manager.
2016-10-19 02:21:20 +01:00
Richard Davey
1aebdb9dd7
Fixed the Batch renderer at last. Just need to add multi-texture support back in.
2016-10-19 01:56:31 +01:00
Richard Davey
238c2fc8aa
Trying more things to get it working!
2016-10-19 00:23:40 +01:00
photonstorm
18b12dfc3e
Huge amount of work getting the WebGL renderer sorted out, tidied up and merged with the latest Texture and Transform components.
2016-10-18 17:03:25 +01:00
Richard Davey
271aab1844
Removed the GPU texture handlers out of the Texture Manager, and into the WebGL Renderer.
2016-10-11 23:48:22 +01:00
Richard Davey
729020477a
New Game Objects structure in place, and starting to take shape.
...
Moved BitmapData and RenderTexture into the textures folder for now.
All Game Objects now have their own sub-folder, with their Factory and renderer functions alongside them, plus any other files they need.
New Factory class added. Currently hooked into `game.factory` for testing, but will swap to `game.add` when complete.
2016-10-08 03:05:42 +01:00
Richard Davey
0abf9d958d
Updated scaleMode global.
2016-10-07 03:22:59 +01:00
Richard Davey
f6047763fa
Fixed Graphics rendering.
2016-10-07 02:53:34 +01:00
Richard Davey
39a8d71027
Fixed, and now rendering properly.
2016-10-07 02:31:35 +01:00
Richard Davey
2630a48266
Added TileSprite to the renderer.
2016-10-07 02:09:12 +01:00
Richard Davey
b18bdab447
UID is set by the Renderer now, removing another Phaser global.
2016-10-07 01:33:01 +01:00
Richard Davey
c67904311c
Moved default vertex shader to the sprite shader.
...
Added multi-texture support back in.
2016-10-07 01:12:31 +01:00
Richard Davey
ea9c9ae7b3
Removed gl texture ID.
2016-10-07 00:59:10 +01:00
Richard Davey
b254d085cd
All of the WebGL Graphics draw ops have been split out, tidied up and merged.
2016-10-07 00:40:31 +01:00
Richard Davey
97b1ac9d4f
Typo fix.
2016-10-06 23:37:44 +01:00
Richard Davey
8a72f0ff35
FilterTexture converted.
2016-10-06 23:36:00 +01:00
Richard Davey
281e9287d1
FilterManager converted. Temp. stencil buffer needs adding.
2016-10-06 23:19:26 +01:00
Richard Davey
caffc9ca5f
Added FilterManager and StencilManager to new renderer.
2016-10-06 22:59:42 +01:00
Richard Davey
dc92c92a30
Removed all instances of gl.id
.
2016-10-05 01:45:22 +01:00
Richard Davey
a12ba9fa10
Added WebGL Sprite Batch.
2016-10-05 01:40:25 +01:00
Richard Davey
fe92b4e388
WebGL using mixins.
2016-10-05 01:25:06 +01:00