2022-01-04 09:30:47 +01:00
|
|
|
// meta-description: Visual shader's node plugin template
|
|
|
|
|
|
|
|
using _BINDINGS_NAMESPACE_;
|
|
|
|
using System;
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
[Tool]
|
|
|
|
[GlobalClass]
|
2022-01-04 09:30:47 +01:00
|
|
|
public partial class VisualShaderNode_CLASS_ : _BASE_
|
|
|
|
{
|
|
|
|
public override string _GetName()
|
|
|
|
{
|
|
|
|
return "_CLASS_";
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string _GetCategory()
|
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string _GetDescription()
|
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override VisualShaderNode.PortType _GetReturnIconType()
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override int _GetInputPortCount()
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override string _GetInputPortName(int port)
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override VisualShaderNode.PortType _GetInputPortType(int port)
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override int _GetOutputPortCount()
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override string _GetOutputPortName(int port)
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return "result";
|
|
|
|
}
|
|
|
|
|
2024-07-26 18:15:37 +02:00
|
|
|
public override VisualShaderNode.PortType _GetOutputPortType(int port)
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-08-08 01:53:54 +02:00
|
|
|
public override string _GetCode(Godot.Collections.Array<string> inputVars, Godot.Collections.Array<string> outputVars, Shader.Mode mode, VisualShader.Type type)
|
2022-01-04 09:30:47 +01:00
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|