DatasmithExportOptions.h
1 // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
2 
3 #pragma once
4 
5 #include "CoreTypes.h"
6 #include "DatasmithUtils.h"
7 
8 /**
9  * Never: it won't force the creation of a UV channel for lightmap, if one already exists it will be exported
10  * IfNotPresent: if a channel already exists it will be used, if not a new automatic UV projection will be created
11  * Always: it will create the UV channel overwritting existing data
12  */
13 enum class EDSExportLightmapUV
14 {
15  Never,
16  IfNotPresent,
17  Always
18 };
19 
20 /**
21  * OriginalFolder: keeps the textures (and its resized copies if needed) in the original folder
22  * ExportFolder: copy the textures to the export path
23  */
24 enum class EDSResizedTexturesPath
25 {
26  OriginalFolder,
27  ExportFolder
28 };
29 
30 class DATASMITHEXPORTER_API FDatasmithExportOptions
31 {
32 public:
33 
34  /** Creation of automatic flatten projection of UVs to be used on lightmaps */
35  static EDSExportLightmapUV LightmapUV;
36  /** Policy to create GPU friendly texture sizes */
37  static EDSResizeTextureMode ResizeTexturesMode;
38  /** it sets where the resized textures will be stored */
39  static EDSResizedTexturesPath PathTexturesMode;
40  /** Maximum texture size allowed, this will be used in conjuction with ResizeTexturesMode */
41  static int32 MaxTextureSize;
42  static const int32 MaxUnrealSupportedTextureSize;
43 
44  /** Gamma of colors, usually 2.2 for Linear Workflow or 1.0 for classic workflow */
45  static float ColorGamma;
46 };
FDatasmithExportOptions::ColorGamma
static float ColorGamma
Gamma of colors, usually 2.2 for Linear Workflow or 1.0 for classic workflow.
Definition: DatasmithExportOptions.h:45
FDatasmithExportOptions::LightmapUV
static EDSExportLightmapUV LightmapUV
Creation of automatic flatten projection of UVs to be used on lightmaps.
Definition: DatasmithExportOptions.h:35
FDatasmithExportOptions::MaxTextureSize
static int32 MaxTextureSize
Maximum texture size allowed, this will be used in conjuction with ResizeTexturesMode.
Definition: DatasmithExportOptions.h:41
FDatasmithExportOptions::PathTexturesMode
static EDSResizedTexturesPath PathTexturesMode
it sets where the resized textures will be stored
Definition: DatasmithExportOptions.h:39
FDatasmithExportOptions::ResizeTexturesMode
static EDSResizeTextureMode ResizeTexturesMode
Policy to create GPU friendly texture sizes.
Definition: DatasmithExportOptions.h:37
FDatasmithExportOptions
Definition: DatasmithExportOptions.h:30