Files
UnrealEngineUWP/Engine/Source/Runtime/MeshConversion/Public/MeshConversionOptions.h
lonnie li 8a7b3a4492 ModelingTools: Pre-transform vertex colors SRGB to Linear in BakeVertex.
#rb jimmy.andrews michael.balzer semion.piskarev
#rnx
#jira UETOOL-3748
#preflight 61140b876c6eb000016e7e5a

[CL 17144701 by lonnie li in ue5-main branch]
2021-08-11 20:28:11 -04:00

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;
}
};