CelticCraft/Plugins/VoxelFree/Source/Voxel/Public/VoxelTools/VoxelTextureTools.h

30 lines
823 B
C
Raw Normal View History

2023-07-03 16:17:13 +00:00
// Copyright 2020 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelTexture.h"
#include "Engine/LatentActionManager.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "VoxelTextureTools.generated.h"
UCLASS()
class VOXEL_API UVoxelTextureTools : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
// Apply the photoshop Minimum filter
// Set each pixel to the min value in a radius Radius
UFUNCTION(BlueprintCallable, Category = "Voxel|Voxel Texture")
static FVoxelFloatTexture Minimum(
FVoxelFloatTexture Texture,
float Radius = 2);
// Apply the photoshop Maximum filter
// Set each pixel to the max value in a radius Radius
UFUNCTION(BlueprintCallable, Category = "Voxel|Voxel Texture")
static FVoxelFloatTexture Maximum(
FVoxelFloatTexture Texture,
float Radius = 2);
};