FMaterialBakingHelpers::PerformUVBorderSmear

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 PerformUVBorderSmear
(
    TArray< FColor > & InOutPixels,
    int32 ImageWidth,
    int32 ImageHeight,
    int32 MaxIterations
)

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.

Parameters

Parameter

Description

InOutPixels

The image to apply the smear to

ImageWidth

The width of the image in pixels

ImageHeight

The height of the image in pixels

MaxIterations

The max distance in pixels to smear the edges of the texture. When set to -1 this value is the max of the width and height of the buffer

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