Navigation
Unreal Engine C++ API Reference > Developer > MaterialBaking
References
Module | MaterialBaking |
Header | /Engine/Source/Developer/MaterialBaking/Public/MaterialBakingStructures.h |
Include | #include "MaterialBakingStructures.h" |
Syntax
struct FMeshData
Remarks
Struct that defines a mesh (Mesh + LOD + MaterialIndex)
Variables
Type | Name | Description |
---|---|---|
bool | bMirrored | Transform determinant used to detect mirroring |
TArray< FVector... | CustomTextureCoordinates | Set of custom texture coordinates which ensure that the material is baked out with unique/non-overlapping positions |
FLightMapRef | LightMap | Reference to the lightmap texture part of the level in the currently being baked out mesh instance data is resident |
int32 | LightMapIndex | Light map index used to retrieve the light-map UVs from RawMesh |
const FLightmap... | LightmapResourceCluster | Pointer to the LightmapResourceCluster to be passed on the the LightCacheInterface when baking |
int | LOD | Specific LOD of the mesh. |
int | MaterialIndex | Specific index of the mesh material (MaterialIndex is an alias of Section). |
TArray< int32 > | MaterialIndices | Material indices to test the Raw Mesh data against, ensuring we only bake out triangles which use the currently baked out material |
const UStaticMe... | Mesh | Ptr to original static mesh this mesh data came from |
const UObject &... | Mesh | Mesh which it may contain multiple LODs and Materials. |
const FMeshDesc... | MeshDescription | Ptr to raw mesh data to use for baking out the material data, if nullptr a standard quad is used |
const UCustomiz... | Node | Node where the mesh is defined. |
const FPrimitiv... | PrimitiveData | Pointer to primitive data that is accessible through material expressions, if nullptr default values are used |
FBox2D | TextureCoordinateBox | Box which's space contains the UV coordinates used to bake out the material |
int32 | TextureCoordinateIndex | Specific texture coordinate index to use as texture coordinates to bake out the material (is overruled if CustomTextureCoordinates contains any data) |
uint32 | VertexColorHash | A hash of the vertex color buffer for the rawmesh |
Operators
Type | Name | Description |
---|---|---|
bool | operator== ( const FMeshData& Other ) |