FMaterialBakingHelpers::PerformUVBorderSmearAndShrink

Applies a box blur to magenta pixels found in given texture represented by InOutPixels using non-magenta pixels, this creates a smear across the magenta/filled pixels.

Windows
MacOS
Linux

References

Module

MaterialBaking

Header

/Engine/Source/Developer/MaterialBaking/Public/MaterialBakingHelpers.h

Include

#include "MaterialBakingHelpers.h"

Source

/Engine/Source/Developer/MaterialBaking/Private/MaterialBakingHelpers.cpp

Syntax

static void PerformUVBorderSmearAndShrink
(
    TArray< FColor > & InOutPixels,
    int32 & InOutImageWidth,
    int32 & InOutImageHeight
)

Remarks

Applies a box blur to magenta pixels found in given texture represented by InOutPixels using non-magenta 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.

Parameters

Parameter

Description

InOutPixels

The image to apply the smear to

InOutImageWidth

The width of the image in pixels

InOutImageHeight

The height of the image in pixels

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss