public class VisualShader : Shader

Inheritance Chain

Static Fields

    public const Int32 NodeIdInvalid = -1

    public const Int32 NodeIdOutput = 0

Constructors

    public VisualShader()

Properties

    public Vector2 GraphOffset { get; set; }

Methods

    public void AddNode(Type type, VisualShaderNode node, Vector2 position, int id)

    public bool CanConnectNodes(Type type, int fromNode, int fromPort, int toNode, int toPort)

    public Error ConnectNodes(Type type, int fromNode, int fromPort, int toNode, int toPort)

    public void DisconnectNodes(Type type, int fromNode, int fromPort, int toNode, int toPort)

    public Vector2 GetGraphOffset()

Getter for GraphOffset

    public VisualShaderNode GetNode(Type type, int id)

    public Godot.Collections.Array GetNodeConnections(Type type)

    public int[] GetNodeList(Type type)

    public Vector2 GetNodePosition(Type type, int id)

    public int GetValidNodeId(Type type)

    public bool IsNodeConnection(Type type, int fromNode, int fromPort, int toNode, int toPort)

    public void RemoveNode(Type type, int id)

    public void SetGraphOffset(Vector2 offset)

Setter for GraphOffset

    public void SetMode(Mode mode)

    public void SetNodePosition(Type type, int id, Vector2 position)

Inner Types

Type

Name Value Description
Vertex 0  
Fragment 1  
Light 2  
Max 3  
Tags: