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 FMaterialData
Remarks
Structure containing information about the material which is being baked out
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FColor | BackgroundColor | Background color used to initially fill the output texture and used for border smear |
![]() |
EBlendMode | BlendMode | Blend mode to use when baking, allowing for example detection of overlapping UVs |
![]() |
bool | bPerformBorderSmear | Whether to smear borders after baking |
![]() |
bool | bPerformShrinking | Whether to try to shrink the color values to a single non-magenta color value after baking |
![]() |
bool | bTangentSpaceNormal | Whether to transform normals from world-space to tangent-space (does nothing if material already uses tangent-space normals) |
![]() |
UMaterialInterface * | Material | Material to bake out |
![]() |
TMap< EMaterialProperty, FIntPoint > | PropertySizes | Properties and the texture size at which they should be baked out |