FFlattenMaterial

Structure used for storing intermediate baked down material data/samples

Windows
MacOS
Linux

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

Name Description

Public variable

bool

 

bDitheredLODTransition

Flag whether or not the material will use dithered LOD transitions

Public variable

EBlendMode

 

BlendMode

Blend mode for the new material

Public variable

bool

 

bTwoSided

Flag whether or not the material will have to be two-sided

Public variable

float

 

EmissiveScale

Scale (maximum baked down value) for the emissive property

Public variable

FGuid

 

MaterialId

Material Guid

Public variable

FIntPoint

 

RenderSize

Public variable

int32

 

UVChannel

UV channel to use

Constructors

Name Description

Public function

FFlattenMaterial()

Functions

Name Description

Public function Const

const bool

 

DoesPropertyContainData

(
    const EFlattenMaterialProperties Pr...
)

Public function

void

 

FillAlphaValues

(
    const uint8 InAlphaValue
)

Set all alpha channel values with InAlphaValue

Public function

TArray< FCol...

 

GetPropertySamples

(
    const EFlattenMaterialProperties Pr...
)

Public function Const

const TArray...

 

GetPropertySamples

(
    const EFlattenMaterialProperties Pr...
)

Public function Const

const FIntPo...

 

GetPropertySize

(
    const EFlattenMaterialProperties Pr...
)

Public function Const

const bool

 

IsPropertyConstant

(
    const EFlattenMaterialProperties Pr...
)

Public function

void

 

ReleaseData()

Release all the sample data

Public function

void

 

SetPropertySize

(
    const EFlattenMaterialProperties Pr...,
    const FIntPoint& InSize
)

Public function Const

const bool

 

ShouldGenerateDataForProperty

(
    const EFlattenMaterialProperties Pr...
)