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
Richard Davey
28eb7a5f40
Adding in more renderer game objects.
2016-10-04 22:36:07 +01:00
photonstorm
482bb96056
Added in SpriteBatch, Graphics and Strip shaders.
2016-10-04 16:51:47 +01:00
photonstorm
03f67a2677
Refactored WebGL renderer working for Sprites and Containers.
2016-10-04 15:39:54 +01:00