Clarify that the Mesh.ARRAY_NORMAL array will normalize its contents internally

This commit is contained in:
Mikhail Volodin 2024-07-02 21:31:29 +03:00 committed by Rémi Verschelde
parent f0d15bbfdf
commit 6e9de82110
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -223,6 +223,7 @@
</constant> </constant>
<constant name="ARRAY_NORMAL" value="1" enum="ArrayType"> <constant name="ARRAY_NORMAL" value="1" enum="ArrayType">
[PackedVector3Array] of vertex normals. [PackedVector3Array] of vertex normals.
[b]Note:[/b] The array has to consist of normal vectors, otherwise they will be normalized by the engine, potentially causing visual discrepancies.
</constant> </constant>
<constant name="ARRAY_TANGENT" value="2" enum="ArrayType"> <constant name="ARRAY_TANGENT" value="2" enum="ArrayType">
[PackedFloat32Array] of vertex tangents. Each element in groups of 4 floats, first 3 floats determine the tangent, and the last the binormal direction as -1 or 1. [PackedFloat32Array] of vertex tangents. Each element in groups of 4 floats, first 3 floats determine the tangent, and the last the binormal direction as -1 or 1.