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