TMeshTangents::ComputeTriVertexTangents

Calculate per-triangle tangent spaces based on the given per-triangle normal and UV overlays.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshTangents.h

Include

#include "MeshTangents.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshTangents.cpp

Syntax

void ComputeTriVertexTangents
(
    const FDynamicMeshNormalOverlay * NormalOverlay,
    const FDynamicMeshUVOverlay * UVOverlay,
    const FComputeTangentsOptions & Options
)

Remarks

Calculate per-triangle tangent spaces based on the given per-triangle normal and UV overlays. In this mode there is no averaging of tangents across triangles. So if we have N triangles in the mesh, then 3*N tangents are generated. These tangents are computed in parallel.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss