Tile.tintFill is a new boolean property that controls if the tile tint is additive or fill based. This is used in the TilemapLayerWebGLRenderer function.

This commit is contained in:
Richard Davey 2023-10-11 20:53:12 +01:00
parent 181a022348
commit 641276c625

View file

@ -302,6 +302,19 @@ var Tile = new Class({
*/
this.tint = 0xffffff;
/**
* The tint fill mode.
*
* `false` = An additive tint (the default), where vertices colors are blended with the texture.
* `true` = A fill tint, where the vertices colors replace the texture, but respects texture alpha.
*
* @name Phaser.Tilemaps.Tile#tintFill
* @type {boolean}
* @default
* @since 3.61.0
*/
this.tintFill = false;
/**
* An empty object where physics-engine specific information (e.g. bodies) may be stored.
*