Skip to content

Commit

Permalink
Merge pull request godotengine#7954 from Hinsbart/tilemap_self_modulate
Browse files Browse the repository at this point in the history
TileMap: Respect self_modulate property
  • Loading branch information
akien-mga authored Mar 5, 2017
2 parents e6952ca + 962243f commit 532f6d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/2d/tile_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 532f6d4

Please sign in to comment.