浏览代码

Document how to display the vertex color in `SurfaceTool.add_color()`

This closes https://github.com/godotengine/godot-docs/issues/4083.

(cherry picked from commit 2f1d40367acbc78f2d029fa68bdb02ee2626afc2)
Hugo Locurcio 5 年之前
父节点
当前提交
a5f98e915c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/SurfaceTool.xml

+ 1 - 0
doc/classes/SurfaceTool.xml

@@ -38,6 +38,7 @@
 			</argument>
 			<description>
 				Specifies a [Color] for the next vertex to use.
+				[b]Note:[/b] The material must have [member SpatialMaterial.vertex_color_use_as_albedo] enabled for the vertex color to be visible.
 			</description>
 		</method>
 		<method name="add_index">