Update procedural_geometry.rst

Lines 24 and 68 should be 'Mesh.PRIMITIVE_TRIANGLES' and not 'Mesh.PRIMITIVE_TRIANGLE'
This commit is contained in:
tree786
2019-04-24 16:42:14 +01:00
committed by GitHub
parent c15182091a
commit 05fb9e7f93

View File

@@ -21,7 +21,7 @@ Here is a simple example of how to use it to add a single triangle.
var st = SurfaceTool.new()
st.begin(Mesh.PRIMITIVE_TRIANGLE)
st.begin(Mesh.PRIMITIVE_TRIANGLES)
# Prepare attributes for add_vertex.
st.add_normal(Vector3(0, 0, 1))
@@ -65,7 +65,7 @@ It's used similar to *SurfaceTool*.
clear()
# Begin draw.
begin(Mesh.PRIMITIVE_TRIANGLE)
begin(Mesh.PRIMITIVE_TRIANGLES)
# Prepare attributes for add_vertex.
set_normal( Vector3(0, 0, 1))