UDynamicMeshComponent::SetTangentsType

Triangle-Vertex Tangents support.

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryFramework

Header

/Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h

Include

#include "Components/DynamicMeshComponent.h"

Source

/Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp

Syntax

void SetTangentsType
(
    EDynamicMeshComponentTangentsMode NewTangentsType
)

Remarks

Triangle-Vertex Tangents support. The default behavior is to not use Tangents, this will lead to incorrect rendering for any material with Normal Maps and some other shaders. If TangentsType == EDynamicMeshComponentTangentsMode::ExternallyProvided, the Tangent and Bitangent attributes of the FDynamicMesh3 AttributeSet are used at the SceneProxy level, the Component is not involved If TangentsType == EDynamicMeshComponentTangentsMode::AutoCalculated, the Tangents are computed internally using a fast MikkT approximation via FMeshTangentsf. They will be recomputed when the mesh is modified, however they are not recomputed when using the Fast Update functions above (in that case InvalidateAutoCalculatedTangents() can be used to force recomputation)