Navigation
API > API/Developer > API/Developer/MaterialUtilities > API/Developer/MaterialUtilities/FMaterialUtilities
Deprecated * Please use new functionality in MaterialBaking module
References
Module | MaterialUtilities |
Header | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
Include | #include "MaterialUtilities.h" |
Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static bool RenderMaterialPropertyToTexture
&40;
struct FMaterialMergeData & InMaterialData,
EMaterialProperty InMaterialProperty,
bool bInForceLinearGamma,
EPixelFormat InPixelFormat,
const FIntPoint InTargetSize,
FIntPoint & OutSampleSize,
TArray< FColor > & OutSamples
&41;
Remarks
Renders out the specified material property with the given material data to a texture Whether operation was successful
Parameters
Name | Description |
---|---|
InMaterialData | Target material data |
InMaterialProperty | Target material property |
bInForceLinearGamma | Whether or not to force linear gamma (used for Normal property) |
InPixelFormat | Pixel format of the target texture |
InTargetSize | Dimensions of the target texture |
OutSampleSize | Dimensions of the rendered texture |
OutSamples | Array of FColor samples containing the rendered out texture pixel data |