Files
UnrealEngine/Engine/Plugins/Mutable/Source/MutableTools/Public/MuT/NodeImageSaturate.h
2025-05-18 13:04:45 +08:00

44 lines
859 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/Node.h"
#include "MuT/NodeImage.h"
#include "MuT/NodeScalar.h"
namespace mu
{
/** Change the saturation of an image.This node can be used to increase the saturation with a
* factor bigger than 1, or to decrease it or desaturate it completely with a factor smaller
* than 1 or 0.
*/
class MUTABLETOOLS_API NodeImageSaturate : public NodeImage
{
public:
Ptr<NodeImage> Source;
Ptr<NodeScalar> Factor;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeImageSaturate() {}
private:
static FNodeType StaticType;
};
}