Improve the procedural geometry class documentations
This references Godot's winding order at the top of every procedural geometry class, as well as referencing other classes within a given geometry class. A warning about ImmediateGeometry3D performance was also added.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
m.mesh = arr_mesh
|
||||
[/codeblock]
|
||||
The [MeshInstance3D] is ready to be added to the [SceneTree] to be shown.
|
||||
See also [ImmediateGeometry3D], [MeshDataTool] and [SurfaceTool] for procedural geometry generation.
|
||||
[b]Note:[/b] Godot uses clockwise [url=https://learnopengl.com/Advanced-OpenGL/Face-culling]winding order[/url] for front faces of triangle primitive modes.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/content/procedural_geometry/arraymesh.html</link>
|
||||
@@ -56,7 +58,6 @@
|
||||
Surfaces are created to be rendered using a [code]primitive[/code], which may be any of the types defined in [enum Mesh.PrimitiveType]. (As a note, when using indices, it is recommended to only use points, lines or triangles.) [method Mesh.get_surface_count] will become the [code]surf_idx[/code] for this new surface.
|
||||
The [code]arrays[/code] argument is an array of arrays. See [enum ArrayType] for the values used in this array. For example, [code]arrays[0][/code] is the array of vertices. That first vertex sub-array is always required; the others are optional. Adding an index array puts this function into "index mode" where the vertex and other arrays become the sources of data and the index array defines the vertex order. All sub-arrays must have the same length as the vertex array or be empty, except for [constant ARRAY_INDEX] if it is used.
|
||||
Adding an index array puts this function into "index mode" where the vertex and other arrays become the sources of data, and the index array defines the order of the vertices.
|
||||
Godot uses clockwise winding order for front faces of triangle primitive modes.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_blend_shapes">
|
||||
|
||||
Reference in New Issue
Block a user