2
0
Эх сурвалжийг харах

Add clarification to tile_set_modulate

To resolve 45677, adds a note to tile_set_modulate clarifying how to use tile_modulate in shaders.
SnailRhymer 3 жил өмнө
parent
commit
6ac800aab7

+ 1 - 0
doc/classes/TileSet.xml

@@ -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">