Module |
|
Header |
/Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/KismetProceduralMeshLibrary.h |
Include |
#include "KismetProceduralMeshLibrary.h" |
Source |
/Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Private/KismetProceduralMeshLibrary.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Components|ProceduralMesh",
Meta=(AutoCreateRefTerm="SmoothingGroups,UVs"))
static void CalculateTangentsForMesh
(
const TArray< FVector > & Vertices,
const TArray< int32 > & Triangles,
const TArray< FVector2D > & UVs,
TArray< FVector > & Normals,
TArray< FProcMeshTangent > & Tangents
)
Automatically generate normals and tangent vectors for a mesh UVs are required for correct tangent generation.