diff options
| author | Ovnuniarchos | 2016-11-22 01:35:34 +0100 |
|---|---|---|
| committer | Ovnuniarchos | 2016-11-24 21:28:10 +0100 |
| commit | e07dd9ab324ea376cda3f2a4e6f4b804dbc52042 (patch) | |
| tree | 46961d624766f34026da3c716c462af918fd8c77 /scene/2d/tile_map.cpp | |
| parent | 9e2d09f580c319e511d3a816bba8a54138a4bcd1 (diff) | |
| download | godot-e07dd9ab324ea376cda3f2a4e6f4b804dbc52042.tar.gz godot-e07dd9ab324ea376cda3f2a4e6f4b804dbc52042.tar.zst godot-e07dd9ab324ea376cda3f2a4e6f4b804dbc52042.zip | |
TileMap now honors blending mode.
Diffstat (limited to 'scene/2d/tile_map.cpp')
| -rw-r--r-- | scene/2d/tile_map.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 1a4f88c30..cc904e4d0 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -352,6 +352,7 @@ void TileMap::_update_dirty_quadrants() { xform.set_origin( q.pos ); vs->canvas_item_set_transform( canvas_item, xform ); vs->canvas_item_set_light_mask(canvas_item,get_light_mask()); + vs->canvas_item_set_blend_mode(canvas_item,VS::MaterialBlendMode(get_blend_mode())); q.canvas_items.push_back(canvas_item); @@ -1190,6 +1191,14 @@ void TileMap::set_light_mask(int p_light_mask) { } } +void TileMap::set_blend_mode(BlendMode p_blend_mode) { + + CanvasItem::set_blend_mode(p_blend_mode); + _recreate_quadrants(); + +} + + void TileMap::_bind_methods() { |
