You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
30 lines
1.5 KiB
C++
30 lines
1.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Containers/Array.h"
|
|
|
|
struct FColor;
|
|
|
|
class MATERIALBAKING_API FMaterialBakingHelpers
|
|
{
|
|
public:
|
|
/**
|
|
* 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.
|
|
* @param InOutPixels The image to apply the smear to
|
|
* @param ImageWidth The width of the image in pixels
|
|
* @param ImageHeight The height of the image in pixels
|
|
* @param 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
|
|
*/
|
|
static void PerformUVBorderSmear(TArray<FColor>& InOutPixels, int32 ImageWidth, int32 ImageHeight, int32 MaxIterations = -1);
|
|
|
|
/**
|
|
* 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.
|
|
* @param InOutPixels The image to apply the smear to
|
|
* @param InOutImageWidth The width of the image in pixels
|
|
* @param InOutImageHeight The height of the image in pixels
|
|
*
|
|
* @note 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.
|
|
*/
|
|
static void PerformUVBorderSmearAndShrink(TArray<FColor>& InOutPixels, int32& InOutImageWidth, int32& InOutImageHeight);
|
|
}; |