You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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]
23 lines
632 B
C++
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 |