IMeshUtilities::CalculateMikkTSpaceTangents

Calculates MikkTSpace Tangents for a given set of vertex data with normals provided

Windows
MacOS
Linux

References

Module

MeshUtilities

Header

/Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h

Include

#include "MeshUtilities.h"

Syntax

void CalculateMikkTSpaceTangents
(
    const TArray< FVector > & InVertices,
    const TArray< uint32 > & InIndices,
    const TArray< FVector2D > & InUVs,
    const TArray< FVector > & InNormals,
    bool bIgnoreDegenerateTriangles,
    TArray< FVector > & OutTangentX,
    TArray< FVector > & OutTangentY
) const

Remarks

Calculates MikkTSpace Tangents for a given set of vertex data with normals provided

Parameters

Parameter

Description

InVertices

Vertices that make up the mesh

InIndices

Indices for the Vertex array

InUVs

Texture coordinates (per-index based)

InNormals

Normals used for the tangent calculation (must be normalized)

bIgnoreDegenerateTriangles

Flag for MikkTSpace to skip degenerate triangles fix-up path

OutTangentX

Array to hold calculated Tangents

OutTangentY

Array to hold calculated Bitangents

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