Richard Davey
|
c1020c6dbb
|
Refactoring TTP to remove so much redundant stuff
|
2018-07-02 16:44:24 +01:00 |
|
Richard Davey
|
fe61cfe2d1
|
You can now set the WebGL batch size in the Game Config via the property batchSize . The default is 2000 before the batch will flush, which is a happy average between desktop and mobile. If targeting desktop specifically, you may wish to increase this value to reduce draw calls.
|
2018-07-02 12:33:46 +01:00 |
|
Richard Davey
|
1941d8a494
|
Removed drawStaticTilemapLayer method and updated layer vertex code
|
2018-07-02 12:07:39 +01:00 |
|
Richard Davey
|
fdead2af16
|
Added the tint effect attribute and merged with all the various batches
|
2018-06-30 11:33:52 +01:00 |
|
Richard Davey
|
11ef2c824b
|
Updated shader to support tint effect attribute
|
2018-06-30 11:33:28 +01:00 |
|
Richard Davey
|
e22b1a7b9c
|
Removed stubs from pipelines
|
2018-06-29 12:33:44 +01:00 |
|
Richard Davey
|
39c3866179
|
lint fix
|
2018-06-28 13:07:59 +01:00 |
|
Richard Davey
|
217779604c
|
Added tileScaleX and tileScaleY support for Tile Sprites
|
2018-06-28 12:59:27 +01:00 |
|
Richard Davey
|
8c312090da
|
Solidified use of pixelArt mode
|
2018-06-27 15:27:16 +01:00 |
|
Richard Davey
|
7a23378015
|
Unified use of roundPixels, antialias and pixelArt modes
|
2018-06-27 15:15:00 +01:00 |
|
Richard Davey
|
7aa46657c2
|
Tidying up jsdocs and changing float to number
|
2018-06-26 23:19:14 +01:00 |
|
Richard Davey
|
bb7b99a4db
|
Updated log and formatting
|
2018-06-25 22:53:42 +01:00 |
|
Richard Davey
|
c6c9b25fdc
|
Camera.alpha (and its related method Camera.setAlpha ) allows you to get an alpha level for the entire camera. This impacts everything it is rendering, even if those objects also have their own alpha values too. You can tween the property to make the camera contents fade in / out, or you can set it as needed in your game.
|
2018-06-25 17:35:36 +01:00 |
|
Richard Davey
|
98b1cc2dbc
|
Although the Blitter object had the Alpha component, setting it made no difference. Setting Blitter alpha now impacts the rendering of all children, in both Canvas and WebGL, and you can also specify an alpha per Bob as well.
|
2018-06-25 16:06:22 +01:00 |
|
Richard Davey
|
f45ab89f8d
|
The ForwardDiffuseLightPipeline, used by the Lights system, now sets a flag if the Scene doesn't contain any lights. All of the Game Objects now check this flag and don't even bother adding themselves to the batch if there are no lights in the Scene, as they'd never render anyway. This also avoids the ghost-image problem if you swap Scenes to a new Scene with the Light Manager enabled, but no actual lights defined. Fix #3707
|
2018-05-31 16:57:30 +01:00 |
|
Richard Davey
|
9429a28574
|
The Particle tint value was incorrectly calculated, causing the color channels to be inversed. Fix #3643
|
2018-05-18 13:16:17 +01:00 |
|
Richard Davey
|
7a4b29872e
|
Allow for custom canvas and context game config options. Game.context now set in WebGL mode. Allows WebGL2 contexts to be passed in. Fix #3653
|
2018-05-10 12:25:33 +01:00 |
|
Richard Davey
|
835bc37e32
|
Optimized TextureTintPipeline.drawBlitter so it skips bobs that have alpha of zero and only calls setTexture2D if the bob sourceIndex has changed, previously it called it for every single bob.
|
2018-05-09 15:13:06 +01:00 |
|
Richard Davey
|
7df0488100
|
Fixed dupe config set
|
2018-05-09 14:32:32 +01:00 |
|
Richard Davey
|
6ec1a580eb
|
typo fix
|
2018-05-09 14:30:31 +01:00 |
|
Richard Davey
|
056e74d6dc
|
Added compression object for future texture compression support.
|
2018-05-09 13:46:19 +01:00 |
|
Richard Davey
|
89329a2315
|
Added getMaxTextures and getMaxTextureSize methods
|
2018-05-09 12:12:16 +01:00 |
|
Richard Davey
|
57918bb50f
|
Removed the need for raw-loader in webpack. Shaders now build to standard JS files. Removed fs requirement.
|
2018-05-08 23:04:57 +01:00 |
|
Richard Davey
|
97dd683ea1
|
The Forward Diffuse Light Pipeline was hard coded to assume the normal map would be stored in the source index zero. It now correctly obtains the normal map from the frame source index, which means all Game Objects that used frames from multi-atlas textures will now work with lights properly.
|
2018-05-04 14:31:19 +01:00 |
|
Felipe Alfonso
|
cf8e2cfd60
|
added jsdoc comments to WebGLRenderer
|
2018-04-25 20:30:41 -03:00 |
|
Felipe Alfonso
|
0c90f068fc
|
Added jsdoc comments to WebGLPipeline
|
2018-04-25 19:52:20 -03:00 |
|
Felipe Alfonso
|
e85c66a2fd
|
Added jsdocs comments to WebGL utils
|
2018-04-25 13:17:33 -03:00 |
|
Felipe Alfonso
|
d2da10c1a9
|
Added jsdoc comments to TextureTintPipeline
|
2018-04-25 13:06:19 -03:00 |
|
Felipe Alfonso
|
f64b4b9b20
|
added jsdoc comments to ForwardDiffuseLightPipeline
|
2018-04-24 16:52:57 -03:00 |
|
Felipe Alfonso
|
7e90dab82f
|
FlatTintPipeline jsdoc comments
|
2018-04-24 16:30:00 -03:00 |
|
Felipe Alfonso
|
e385d018c5
|
added comments to ModelViewProjection pipeline component
|
2018-04-24 16:00:35 -03:00 |
|
Felipe Alfonso
|
426bc4ffd4
|
BitmapMaskPipeline jsdoc descriptions
|
2018-04-24 13:53:10 -03:00 |
|
Richard Davey
|
ef24982301
|
Pending dos
|
2018-04-24 15:34:55 +01:00 |
|
Richard Davey
|
741d1f5793
|
Doc pending tags
|
2018-04-24 15:32:08 +01:00 |
|
Richard Davey
|
54a5bb41c7
|
Tidying up
|
2018-04-23 19:11:16 +01:00 |
|
Richard Davey
|
649378ed0a
|
Tidied up canvas creation and texture deletion
|
2018-04-23 17:30:09 +01:00 |
|
Richard Davey
|
176b085402
|
jsdoc fix
|
2018-04-19 13:28:10 +01:00 |
|
Felipe Alfonso
|
504ba9e133
|
Fixed eslint errors on TextureTintPipeline.js
|
2018-04-18 18:54:06 -03:00 |
|
Felipe Alfonso
|
aef538d61b
|
Added parent transform matrix to Light2D pipieline to allow support for containers
|
2018-04-18 18:40:27 -03:00 |
|
Felipe Alfonso
|
47bee69b3b
|
Fixed transformation matrix order for batchGraphics
|
2018-04-18 18:35:18 -03:00 |
|
Felipe Alfonso
|
18e178a72f
|
Fixed matrix transformation order for batchTexture
|
2018-04-18 18:30:54 -03:00 |
|
Felipe Alfonso
|
f3e0ae8d44
|
Fixed order of transformation for dynamic bitmap text
|
2018-04-18 18:28:08 -03:00 |
|
Felipe Alfonso
|
dbafd9a70c
|
Fixed order of matrix transformation on:
-emitter
-blitter
-sprite
-mesh
-bitmap text
|
2018-04-18 18:15:43 -03:00 |
|
Richard Davey
|
55965c748f
|
jsdoc fixes
|
2018-04-18 12:13:49 +01:00 |
|
Felipe Alfonso
|
eceb43584b
|
Fixed issue on particle emitter rendering not writing directly to the vertex count property
|
2018-04-17 13:20:08 -03:00 |
|
Felipe Alfonso
|
5cc2ebd6be
|
Fixed issue when destroying WebGLRenderer
|
2018-04-16 15:16:23 -03:00 |
|
Felipe Alfonso
|
9961636722
|
Fixed overflowing of vertex count on particle emitter batcher
|
2018-04-16 12:38:02 -03:00 |
|
Richard Davey
|
e37b183038
|
Completed all jsdocs for the Camera class
|
2018-04-15 05:05:03 +01:00 |
|
Richard Davey
|
380d4afb92
|
Swapping to new camera effects system
|
2018-04-14 17:38:48 +01:00 |
|
Richard Davey
|
57c5ca657b
|
Small refactoring
|
2018-04-05 11:01:24 +01:00 |
|
Richard Davey
|
4f6239dadb
|
jsdoc and eslint fixes
|
2018-04-05 09:02:36 +01:00 |
|
Felipe Alfonso
|
bea7ca36ad
|
Merge branch 'master' into containers
# Conflicts:
# src/renderer/webgl/pipelines/TextureTintPipeline.js
|
2018-04-04 12:07:41 -03:00 |
|
Richard Davey
|
af12eaac77
|
Merge branch 'master' into FR3472
|
2018-04-04 11:28:58 +01:00 |
|
Felipe Alfonso
|
3158d688ad
|
TileSprite batcher modulates tilePosition by the texture size to avoid scrolling uv coordinates to large values.
issue ref: https://github.com/photonstorm/phaser/issues/3402
|
2018-04-03 14:21:24 -03:00 |
|
Travis O'Neal
|
2ec70cac48
|
Added a letterSpacing property to BitmapText
|
2018-04-02 09:42:24 -04:00 |
|
Travis O'Neal
|
d6265a59dd
|
Initial Commit
|
2018-03-30 13:46:44 -04:00 |
|
Felipe Alfonso
|
4f8ddd73bb
|
Merge branch 'master' into containers
|
2018-03-29 12:35:40 -03:00 |
|
Richard Davey
|
f5373b2dee
|
jsdoc fixes
|
2018-03-29 13:23:44 +01:00 |
|
Felipe Alfonso
|
3741b9ea6d
|
Added nested support to graphics rendering
|
2018-03-27 16:57:49 -03:00 |
|
Felipe Alfonso
|
161f258f60
|
Parent transform applied to all texture tint pipeline object rendering functions
|
2018-03-26 21:16:36 -03:00 |
|
Felipe Alfonso
|
48b8e7c704
|
parentTransformMatrix mulitplication
|
2018-03-26 19:55:38 -03:00 |
|
Felipe Alfonso
|
eac2b8338e
|
parentTransformMatrix argument added to texture pipeline
|
2018-03-26 17:23:18 -03:00 |
|
Felipe Alfonso
|
5bcd12fcb7
|
Base container rendering + sprite batching with parent matrix
|
2018-03-23 14:15:52 -03:00 |
|
Richard Davey
|
0ef92e1172
|
Merge branch 'pr/3439'
|
2018-03-21 16:06:56 +00:00 |
|
orblazer
|
dcd80375c0
|
Fix "object" types on Renderer and Scene
|
2018-03-21 14:41:17 +01:00 |
|
José Maria
|
f9e978a2bd
|
(WebGL) updating currentScissor on game.resize
with the array being update it solves the issue with the global background not being fully draw after resizing the game.
|
2018-03-20 23:38:00 -03:00 |
|
Richard Davey
|
64fdbc3040
|
Graphics.alpha was being ignored in the WebGL renderer and is now applied properly to strokes and fills. Fix #3426
|
2018-03-20 00:27:39 +00:00 |
|
orblazer
|
8fdedabaeb
|
Add callbacks on Renderer
|
2018-03-19 21:41:24 +01:00 |
|
Richard Davey
|
620bcc6ae5
|
jsdoc fixes and additions
|
2018-03-19 13:45:00 +00:00 |
|
Richard Davey
|
9832befeea
|
Fixed camera y
|
2018-03-16 15:47:14 +00:00 |
|
Richard Davey
|
fbec8f978c
|
You can now specify all of the renderer config options within a render object in the config. If no render object is found, it will scan the config object directly for the properties.
|
2018-03-16 13:22:52 +00:00 |
|
Richard Davey
|
dd4e00007f
|
Added antialias config value
|
2018-03-16 00:52:21 +00:00 |
|
Richard Davey
|
0c1c16deba
|
Used new config values, fixed eslint formatting and floored dimensions
|
2018-03-15 21:15:39 +00:00 |
|
Richard Davey
|
edf1aa7cc1
|
The onContextRestored callback won't be defined any more unless the WebGL Renderer is in use in the following objects: BitmapMask, Static Tilemap, TileSprite and Text. This should allow those objects to now work in HEADLESS mode. Fix #3368
|
2018-03-12 13:37:13 +00:00 |
|
Richard Davey
|
063d30602e
|
The ForwardDiffuseLightPipeline now uses sys.lights instead of the Scene variable to avoid errors due to injection removal.
|
2018-03-12 12:55:09 +00:00 |
|
samme
|
d7780aff64
|
Fix error when no Light Manager exists
|
2018-03-11 19:22:42 -07:00 |
|
Richard Davey
|
c2f25b3742
|
Merge pull request #3240 from Twilrom/arc-fix
Update WebGL Graphics.arc to work more like on Canvas
|
2018-03-05 21:54:46 +00:00 |
|
Richard Davey
|
bfabe35cdf
|
eslint fixes
|
2018-03-05 21:49:08 +00:00 |
|
Felipe Alfonso
|
ddc85cfdc7
|
Added support for tint and alpha to RenderTexture
|
2018-03-05 16:57:41 -03:00 |
|
Felipe Alfonso
|
c1d482b593
|
Added jsdoc comments to new methods and properties on WebGLPipeline and WebGLRenderer
|
2018-03-05 12:28:59 -03:00 |
|
Felipe Alfonso
|
38dc3bbd82
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2018-03-05 11:29:56 -03:00 |
|
Felipe Alfonso
|
98893e1bba
|
Modified WebGLPipeline and it's child classes to make them easier to generate custom Pipelines. Added functions to WebGLPipeline to modify uniforms. Exposed Renderer namespace for usage outside the engine
|
2018-03-05 11:29:48 -03:00 |
|
Richard Davey
|
4d16b0c00a
|
eslint fixes
|
2018-03-05 01:45:28 +00:00 |
|
Richard Davey
|
ae1c91cf6a
|
eslint fixes
|
2018-03-05 01:40:11 +00:00 |
|
Felipe Alfonso
|
14399d6910
|
TileSprite can now set frame of the pattern texture
|
2018-02-28 17:04:57 -03:00 |
|
Felipe Alfonso
|
6a114fc07a
|
Added roundPixels to the texture pipeline
|
2018-02-28 15:08:08 -03:00 |
|
Felipe Alfonso
|
9dbb4db4c6
|
Added inverted alpha to bitmap mask
|
2018-02-23 14:09:27 -03:00 |
|
Felipe Alfonso
|
ef8e92dc01
|
RenderTexture base webgl implementation
|
2018-02-23 00:44:22 -03:00 |
|
Felipe Alfonso
|
57333ea492
|
Fixed issue with null texture on particle emitter batch generation
|
2018-02-22 20:36:25 -03:00 |
|
Felipe Alfonso
|
a218cd5f4a
|
Fixed issue with vertex buffer creation on Static Tilemap Layer
|
2018-02-22 01:07:43 -03:00 |
|
Richard Davey
|
73da8608e0
|
Fixed lint errors
|
2018-02-19 23:14:57 +00:00 |
|
Felipe Alfonso
|
4b9b4c91a3
|
Dynamic BitmapText's origin is used on rendering the text
|
2018-02-19 18:20:30 -03:00 |
|
Felipe Alfonso
|
41bcaba43a
|
Dynamic BitmapText now uses origin component to render the text.
|
2018-02-19 18:16:57 -03:00 |
|
Felipe Alfonso
|
abfe7536e9
|
Removed the read of constant values from the WebGLRenderingContext object. Now they are read from an instance of webgl context.
|
2018-02-19 17:49:17 -03:00 |
|
Felipe Alfonso
|
50c79c14af
|
Removed double rounding to pixel on rendering routines.
Fixed rounding pixel issue when camera is shaking
|
2018-02-19 17:38:40 -03:00 |
|
Felipe Alfonso
|
cdc4359fd7
|
Fixed issue with tint being set on the incorrect vertex
|
2018-02-19 17:06:08 -03:00 |
|
Richard Davey
|
3c65121cb3
|
eslint fixes
|
2018-02-16 19:17:49 +00:00 |
|
Richard Davey
|
d23688c3e4
|
Added eslint fixes and overrides
|
2018-02-16 18:44:07 +00:00 |
|
Richard Davey
|
86f00eeb52
|
eslint fixes
|
2018-02-16 18:17:51 +00:00 |
|
Richard Davey
|
e1554c34d6
|
eslint fixes
|
2018-02-16 18:07:49 +00:00 |
|