Navigation
API > API/Developer > API/Developer/MaterialUtilities
References
| Module | MaterialUtilities |
| Header | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
| Include | #include "MaterialUtilities.h" |
Syntax
struct FFlattenMaterial
Remarks
Structure used for storing intermediate baked down material data/samples
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDitheredLODTransition | Flag whether or not the material will use dithered LOD transitions | |
| bool | bIsThinSurface | Flag whether or not the material will have to be thin | |
| EBlendMode | BlendMode | Blend mode for the new material | |
| bool | bTwoSided | Flag whether or not the material will have to be two-sided | |
| float | EmissiveScale | Scale (maximum baked down value) for the emissive property | |
| FGuid | MaterialId | Material Guid | |
| FIntPoint | RenderSize | ||
| int32 | UVChannel | UV channel to use |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const bool | DoesPropertyContainData
(
const EFlattenMaterialProperties Property |
||
| void | FillAlphaValues
(
const uint8 InAlphaValue |
Set all alpha channel values with InAlphaValue | |
| TArray< FColor > & | GetPropertySamples
(
const EFlattenMaterialProperties Property |
||
| const TArray< FColor > & | GetPropertySamples
(
const EFlattenMaterialProperties Property |
||
| const FIntPoint | GetPropertySize
(
const EFlattenMaterialProperties Property |
||
| bool | HasData () |
||
| const bool | IsPropertyConstant
(
const EFlattenMaterialProperties Property |
||
| void | ReleaseData () |
Release all the sample data | |
| void | SetPropertySize
(
const EFlattenMaterialProperties Property, |
||
| const bool | ShouldGenerateDataForProperty
(
const EFlattenMaterialProperties Property |