Richard Davey
9c76ec0389
Large TextureTintPipeline refactor
...
* The Texture Tint vertex and fragment shaders have been updated to support the `inTexId` float attribute and dynamic generation.
* The Texture Tint Pipeline has a new attribute, `inTexId` which is a `gl.FLOAT`.
* `TextureTintPipeline.bind` is a new method that sets the `uMainSampler` uniform.
* The `TextureTintPipeline.requireTextureBatch` method has been removed, as it's no longer required.
* The `TextureTintPipeline.pushBatch` method has been removed, as it's no longer required.
* The `TextureTintPipeline.maxQuads` property has been removed, as it's no longer required.
* The `TextureTintPipeline.batches` property has been removed, as it's no longer required.
* `TextureTintPipeline.flush` has been rewritten to support multi-textures.
* `TextureTintPipeline.flush` no longer creates a sub-array if the batch is full, but instead uses `bufferData` for speed.
* `TextureTintPipeline.currentUnit` is a new property that holds the most recently assigned texture unit. Treat as read-only.
2020-07-15 17:05:55 +01:00
Richard Davey
3ede28230b
Update WebGLPipeline.js
2020-07-15 16:54:18 +01:00
Richard Davey
a21641e19b
The Dynamic Bitmap Text Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:54:04 +01:00
Richard Davey
50f10b3d4b
The Bitmap Text Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:53:48 +01:00
Richard Davey
446389bb4d
The Blitter Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:53:25 +01:00
Richard Davey
ec0914cd0f
The Mesh Game Object WebGL Renderer function has been updated to support multi-texture units.
2020-07-15 16:53:09 +01:00
Richard Davey
c0504e4fc1
WebGL.Utils.checkShaderMax
is a new function, used internally by the renderer, to determine the maximum number of texture units the GPU + browser supports.
2020-07-15 16:52:26 +01:00
Richard Davey
fd305591ec
Added glIndex and glIndexCounter properties
2020-07-15 16:52:01 +01:00
Richard Davey
477b847f13
Config.render.maxTextures
is a new game config setting that allows you to control how many texture units will be used in WebGL.
2020-07-15 16:51:40 +01:00
Richard Davey
95ded9c8b3
Update package-lock.json
2020-07-14 22:00:25 +01:00
Richard Davey
7c742f95d2
Generate multi-texture shader source
2020-07-14 17:44:26 +01:00
Richard Davey
9a45517efd
Pass max textures to pipeline (disable other pipelines for now)
2020-07-14 17:44:17 +01:00
Richard Davey
587c23ec3c
Added maxGPUTextures
property
2020-07-14 17:43:56 +01:00
Richard Davey
76689942c0
Add texture ID to shaders
2020-07-14 17:43:29 +01:00
Richard Davey
43beca7bab
Create CheckShaderMax.js
2020-07-14 17:43:05 +01:00
Richard Davey
493553c75b
Update CHANGELOG.md
2020-07-14 16:49:33 +01:00
Richard Davey
0003d278fd
Updated to use new external MVP functions
2020-07-14 16:49:30 +01:00
Richard Davey
06c1336f41
Removed all functions from MVP except init and update and made them all external
2020-07-14 16:49:16 +01:00
Richard Davey
a8faef6692
Created new Model View Projection functions
2020-07-14 16:48:01 +01:00
Richard Davey
5cc387b7df
Preparing for 3.25.0 dev
2020-07-14 16:47:43 +01:00
Richard Davey
374d3fcad1
v3.24.1 release
2020-07-14 09:47:03 +01:00
Richard Davey
268a97b084
v3.24.1 types
2020-07-14 09:45:57 +01:00
Richard Davey
4320b6f0ae
Update CHANGELOG.md
2020-07-14 09:45:46 +01:00
Richard Davey
dc13060042
Fixed namespace
2020-07-14 09:45:37 +01:00
Richard Davey
bbdf9b9853
Fixed data type
2020-07-14 09:45:30 +01:00
Richard Davey
d03fe0ca6b
Updated tsgen test
2020-07-14 09:45:19 +01:00
Richard Davey
3c3008cc04
Update package.json
2020-07-14 09:45:04 +01:00
Richard Davey
d5296287b1
Fixed url type
2020-07-14 09:03:07 +01:00
Richard Davey
44f96de1fd
Bump version
2020-07-14 09:02:46 +01:00
Richard Davey
2a2a2eafe8
Reverted PR #5219 because it breaks camera zooming on tilemaps
2020-07-14 08:47:52 +01:00
Richard Davey
f45bde13e1
v.3.24.0
2020-07-13 16:32:28 +01:00
Richard Davey
1c7b853ce5
Updated CleanWebpackPlugin
2020-07-13 16:32:10 +01:00
Richard Davey
4e89ac584b
Update README.md
2020-07-13 16:15:45 +01:00
Richard Davey
e428f9cc03
Update CHANGELOG.md
2020-07-13 14:46:01 +01:00
Richard Davey
14c1a3ad99
The ISO Triangle shape would skip rendering the left side of the first triangle in the batch. It now renders all ISO Triangles correctly. Fix #5164
2020-07-13 14:45:58 +01:00
Richard Davey
4da8361543
Update CHANGELOG.md
2020-07-13 14:34:27 +01:00
Richard Davey
af1198dcf5
Arcade.Components.Size.setBodySize
is a new method available on Arcade Physics Game Objects that allows you to set the body size. This replaces setSize
which is now deprecated. Fix #4786
2020-07-13 14:34:23 +01:00
Richard Davey
7d1ca6815f
Lint fixes
2020-07-13 14:16:52 +01:00
Richard Davey
9b10bdc0be
Disable no-prototype-builtins
errors
2020-07-13 14:16:43 +01:00
Richard Davey
d998d83f3d
Removed postinstall script. Fix #5087
2020-07-13 14:11:57 +01:00
Richard Davey
564eb1b764
Update CHANGELOG.md
2020-07-13 14:06:10 +01:00
Richard Davey
40929a57e3
Calling getTextBounds
on a BitmapText object would return the incorrect values if the origin had been changed, but the text itself had not, as it was using out of date dimensions. Changing the origin now automatically triggers BitmapText to be dirty, forcing the bounds to be refreshed. Fix #5121
2020-07-13 14:06:06 +01:00
Richard Davey
64c58bc592
Updated docs. Fix #5128
2020-07-13 13:36:24 +01:00
Richard Davey
dea68135fd
Correct texture type. Fix #5199
2020-07-13 13:29:01 +01:00
Richard Davey
1484e205f8
Update CHANGELOG.md
2020-07-13 13:21:57 +01:00
Richard Davey
cbba26e08c
Merge pull request #5215 from cruzdanilo/layer-webgl-transform
...
StaticTilemapLayerWebGLRenderer: apply rotation and parent transform
2020-07-13 13:18:02 +01:00
Richard Davey
7fae62cbc8
Merge pull request #5213 from samme/fix/matter-setCrop
...
Fix setCrop() for Matter.Image and Matter.Sprite
2020-07-13 13:14:59 +01:00
Richard Davey
8080196800
Merge pull request #5207 from samme/feature/display-getBounds
...
Add Phaser.Display.Bounds.GetBounds()
2020-07-13 13:14:30 +01:00
Richard Davey
34edcff3fe
Merge pull request #5206 from samme/feature/math-RotateTo
...
Add Phaser.Math#RotateTo
2020-07-13 13:13:30 +01:00
Richard Davey
ab8ad19b1e
Merge pull request #5208 from samme/fix/arcade-physics-body-prev
...
Fix incorrect Arcade Body delta
2020-07-13 13:10:51 +01:00