Navigation
API > API/Developer > API/Developer/MaterialBaking > API/Developer/MaterialBaking/FMaterialBakingHelpers
Description
Shrinks the array to a single pixel if the entire output is monochrome. Params will be adjusted accordingly when this occurs. It's useful to perform this before the border smear as a single non-magenta pixel value would have led to a monochrome image post-smear anyway, so the actual smearing process can be skipped.
| Name | PerformShrinking |
| Type | function |
| Header File | /Engine/Source/Developer/MaterialBaking/Public/MaterialBakingHelpers.h |
| Include Path | #include "MaterialBakingHelpers.h" |
| Source | /Engine/Source/Developer/MaterialBaking/Private/MaterialBakingHelpers.cpp |
static void PerformShrinking
(
TArray< FColor > & InOutPixels,
int32 & OnOutImageWidth,
int32 & InOutImageHeight,
FColor BackgroundColor
)
Parameters
| Name | Remarks |
|---|---|
| InOutPixels | The image to shrink |
| ImageWidth | The width of the image in pixels |
| ImageHeight | The height of the image in pixels |