summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-10-19 13:51:58 -0700
committerGitHub <noreply@github.com>2022-10-19 13:51:58 -0700
commitf63b2a9c05b53141d4008899359fe401b234c5c8 (patch)
tree1f2c5e153cddf0eb4bec22f96eef2edfb8beec0d /doc/classes
parentd148613bb16369fe6c8b400da02a594efaedb924 (diff)
parent793c4ce0ea2227a9fe03b894504e2173b8a416cf (diff)
Merge pull request #66950 from Calinou/doc-surfacetool-generate-normals-smooth-groups
Document `SurfaceTool.generate_normals()` interaction with smooth groups
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/SurfaceTool.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/SurfaceTool.xml b/doc/classes/SurfaceTool.xml
index ccec691107..d56cc9a31b 100644
--- a/doc/classes/SurfaceTool.xml
+++ b/doc/classes/SurfaceTool.xml
@@ -133,6 +133,7 @@
<description>
Generates normals from vertices so you do not have to do it manually. If [param flip] is [code]true[/code], the resulting normals will be inverted. [method generate_normals] should be called [i]after[/i] generating geometry and [i]before[/i] committing the mesh using [method commit] or [method commit_to_arrays]. For correct display of normal-mapped surfaces, you will also have to generate tangents using [method generate_tangents].
[b]Note:[/b] [method generate_normals] only works if the primitive type to be set to [constant Mesh.PRIMITIVE_TRIANGLES].
+ [b]Note:[/b] [method generate_normals] takes smooth groups into account. If you don't specify any smooth group for each vertex, [method generate_normals] will smooth normals for you.
</description>
</method>
<method name="generate_tangents">