FMaterialBakingHelpers::PerformUVBorderSmear

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.

Unreal Engine C++ API Reference > Developer > MaterialBaking > FMaterialBakingHelpers

References

   
Module MaterialBaking
Header /Engine/Source/Developer/MaterialBaking/Public/MaterialBakingHelpers.h
Include #include "MaterialBakingHelpers.h"
Source /Engine/Source/Developer/MaterialBaking/Private/MaterialBakingHelpers.cpp
static void PerformUVBorderSmear
(
    [TArray](API\Runtime\Core\Containers\TArray)< [FColor](API\Runtime\Core\Math\FColor) > & InOutPixels,
    int32 ImageWidth,
    int32 ImageHeight,
    int32 MaxIterations,
    [FColor](API\Runtime\Core\Math\FColor) BackgroundColor
)

Remarks

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.

Parameters

Name 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
BackgroundColor The pixel color considered background in the image, and that can be smeared into

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library