Files
benoit gadreau 77adc25814 DynamicMeshProvider: full support for MeshDescription LODs when converting to DynamicMesh
a FGetMeshParameters parameter is now used to request a specific LOD, as well as the option of requesting tangents
    this will also allow further customization in the future, if required, by adding attributes to the FGetMeshParameters struct


#rb halfdan.ingvarsson, Jimmy.Andrews
#rnx

[CL 33681647 by benoit gadreau in ue5-main branch]
2024-05-16 04:43:12 -04:00

23 lines
632 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "TargetInterfaces/DynamicMeshProvider.h"
#include "DynamicMesh/DynamicMesh3.h"
#include "TargetInterfaces/MeshTargetInterfaceTypes.h"
#define LOCTEXT_NAMESPACE "DynamicMeshProvider"
using namespace UE::Geometry;
FDynamicMesh3 IDynamicMeshProvider::GetDynamicMesh(bool bRequestTangents)
{
FGetMeshParameters GetMeshParams;
GetMeshParams.bWantMeshTangents = bRequestTangents;
return GetDynamicMesh(GetMeshParams);
}
FDynamicMesh3 IDynamicMeshProvider::GetDynamicMesh(const FGetMeshParameters& InGetMeshParams)
{
return GetDynamicMesh();
}
#undef LOCTEXT_NAMESPACE