Add clarification to tile_set_modulate
To resolve 45677, adds a note to tile_set_modulate clarifying how to use tile_modulate in shaders.
(cherry picked from commit 6ac800aab7
)
This commit is contained in:
parent
2e8334fa00
commit
ad12f54778
|
@ -427,6 +427,7 @@
|
|||
<argument index="1" name="color" type="Color" />
|
||||
<description>
|
||||
Sets the tile's modulation color.
|
||||
[b]Note:[/b] Modulation is performed by setting the tile's vertex color. To access this in a shader, use [code]COLOR[/code] rather than [code]MODULATE[/code] (which instead accesses the [TileMap]'s [member CanvasItem.modulate] property).
|
||||
</description>
|
||||
</method>
|
||||
<method name="tile_set_name">
|
||||
|
|
Loading…
Reference in New Issue