mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (543750a)
This commit is contained in:
@@ -37,7 +37,7 @@ The **SurfaceTool** is used to construct a :ref:`Mesh<class_Mesh>` by specifying
|
||||
var st = new SurfaceTool();
|
||||
st.Begin(Mesh.PrimitiveType.Triangles);
|
||||
st.SetColor(new Color(1, 0, 0));
|
||||
st.SetUv(new Vector2(0, 0));
|
||||
st.SetUV(new Vector2(0, 0));
|
||||
st.AddVertex(new Vector3(0, 0, 0));
|
||||
|
||||
|
||||
@@ -611,7 +611,7 @@ void **set_smooth_group** **(** :ref:`int<class_int>` index **)**
|
||||
|
||||
Specifies the smooth group to use for the *next* vertex. If this is never called, all vertices will have the default smooth group of ``0`` and will be smoothed with adjacent vertices of the same group. To produce a mesh with flat normals, set the smooth group to ``-1``.
|
||||
|
||||
\ **Note:** This function actually takes an ``uint32_t``, so C# users should use ``uint32.MaxValue`` instead of ``-1`` to produce a mesh with flat normals.
|
||||
\ **Note:** This function actually takes a ``uint32_t``, so C# users should use ``uint32.MaxValue`` instead of ``-1`` to produce a mesh with flat normals.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user