Commit 532f6d4b by Rémi Verschelde Committed by GitHub

Merge pull request #7954 from Hinsbart/tilemap_self_modulate

TileMap: Respect self_modulate property
parents e6952cad 962243f9
......@@ -458,6 +458,9 @@ void TileMap::_update_dirty_quadrants() {
Color modulate = tile_set->tile_get_modulate(c.id);
Color self_modulate = get_self_modulate();
modulate = Color(modulate.r*self_modulate.r, modulate.g*self_modulate.g,
modulate.b*self_modulate.b, modulate.a*self_modulate.a);
if (r==Rect2()) {
tex->draw_rect(canvas_item,rect,false,modulate,c.transpose);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment