From 641276c625b175e100f63fc3b19043cc549b785f Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 11 Oct 2023 20:53:12 +0100 Subject: [PATCH] `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. --- src/tilemaps/Tile.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/tilemaps/Tile.js b/src/tilemaps/Tile.js index 1d1e5ad89..e25ad862e 100644 --- a/src/tilemaps/Tile.js +++ b/src/tilemaps/Tile.js @@ -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. *