Navigation
API > API/Developer > API/Developer/MaterialBaking > API/Developer/MaterialBaking/FMaterialBakingHelpers
Description
Applies a box blur to magenta pixels found in given texture represented by InOutPixels using non-background pixels, this creates a smear across the magenta/filled pixels.
This version is allowed to shrink the array to a single pixel if the entire output is monochrome. Params will be adjusted accordingly when this occurs.
| Name | PerformUVBorderSmearAndShrink |
| 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 PerformUVBorderSmearAndShrink
(
TArray< FColor > & InOutPixels,
int32 & InOutImageWidth,
int32 & InOutImageHeight,
FColor BackgroundColor
)
Parameters
| Name | Remarks |
|---|---|
| InOutPixels | The image to apply the smear to |
| InOutImageWidth | The width of the image in pixels |
| InOutImageHeight | The height of the image in pixels |
| BackgroundColor | The pixel color considered background in the image, and that can be smeared into |