diff --git a/doc/classes/SurfaceTool.xml b/doc/classes/SurfaceTool.xml index deda7bc292a..4f9ac68e476 100644 --- a/doc/classes/SurfaceTool.xml +++ b/doc/classes/SurfaceTool.xml @@ -14,6 +14,7 @@ [/codeblock] The [code]SurfaceTool[/code] now contains one vertex of a triangle which has a UV coordinate and a specified [Color]. If another vertex were added without calls to [method add_uv] or [method add_color] then the last values would be used. It is very important that vertex attributes are passed [b]before[/b] the call to [method add_vertex], failure to do this will result in an error when committing the vertex information to a mesh. + Additionally, the attributes used before the first vertex is added determine the format of the mesh. For example if you only add UVs to the first vertex, you cannot add color to any of the subsequent vertices. @@ -26,7 +27,7 @@ - Add an array of bones for the next Vertex to use. + Add an array of bones for the next Vertex to use. Array must contain 4 integers. @@ -99,6 +100,7 @@ Insert a triangle fan made of array data into [Mesh] being constructed. + Requires primitive type be set to [code]PRIMITIVE_TRIANGLES[/code]. @@ -134,7 +136,7 @@ - Specify weight value for next Vertex to use. + Specify weight values for next Vertex to use. Array must contain 4 values. @@ -147,6 +149,7 @@ + Append vertices from a given [Mesh] surface onto the current vertex array with specified [Transform]. @@ -184,6 +187,7 @@ + Creates a vertex array from an existing [Mesh]. @@ -201,12 +205,15 @@ Generates normals from Vertices so you do not have to do it manually. Setting "flip" [code]true[/code] inverts resulting normals. + Requires primitive type to be set to [code]PRIMITIVE_TRIANGLES[/code]. + Generates a tangent vector for each vertex. + Requires that each vertex have UVs and normals set already.