You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb jimmy.andrews michael.balzer semion.piskarev #rnx #jira UETOOL-3748 #preflight 61140b876c6eb000016e7e5a [CL 17144701 by lonnie li in ue5-main branch]
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
|
struct MESHCONVERSION_API FConversionToMeshDescriptionOptions
|
|
{
|
|
public:
|
|
/** Should triangle groups be transfered to MeshDescription via custom PolyTriGroups attribute */
|
|
bool bSetPolyGroups = true;
|
|
|
|
|
|
/** Should Positions of vertices in MeshDescription be updated */
|
|
bool bUpdatePositions = true;
|
|
|
|
/** Should normals of MeshDescription be updated, if available and relevant */
|
|
bool bUpdateNormals = true;
|
|
|
|
/** Should Tangents and BiTangentSign of MeshDescription be updated, if available and relevant */
|
|
bool bUpdateTangents = false;
|
|
|
|
/** Should UVs of MeshDescription be updated, if available and relevant */
|
|
bool bUpdateUVs = false;
|
|
|
|
/** Should Vertex Colors of MeshDescription be updated, if available and relevant */
|
|
bool bUpdateVtxColors = false;
|
|
|
|
/** Should Vertex Colors of MeshDescription be transformed from SRGB to Linear */
|
|
bool bTransformVtxColorsSRGBToLinear = false;
|
|
|
|
//
|
|
// utility functions for common configuration cases
|
|
//
|
|
|
|
void SetToVertexColorsOnly()
|
|
{
|
|
bSetPolyGroups = bUpdatePositions = bUpdateNormals = bUpdateTangents = bUpdateUVs = false;
|
|
bUpdateVtxColors = true;
|
|
}
|
|
}; |