Files
2025-05-18 13:04:45 +08:00

46 lines
867 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MuT/Node.h"
#include "MuT/NodeMesh.h"
#include "MuT/NodeImage.h"
#include "MuT/NodeLayout.h"
#include "MuR/Mesh.h"
#include "Templates/SharedPointer.h"
namespace mu
{
/** Node that outputs a constant mesh.
* It allows to define the layouts for the texture channels of the constant mesh
*/
class MUTABLETOOLS_API NodeMeshConstant : public NodeMesh
{
public:
FSourceDataDescriptor SourceDataDescriptor;
TSharedPtr<FMesh> Value;
TArray<Ptr<NodeLayout>> Layouts;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeMeshConstant() {}
private:
static FNodeType StaticType;
};
}