VisualShader

A custom shader program with a visual editor.

This class allows you to define a custom shader program that can be used for various materials to render objects. The visual shader editor creates the shader.

@GodotBaseClass
struct VisualShader {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Type
enum Type

Functions

_inputTypeChanged
void _inputTypeChanged(long arg0, long arg1)
_queueUpdate
void _queueUpdate()
_updateShader
void _updateShader()
addNode
void addNode(long type, VisualShaderNode node, Vector2 position, long id)

Adds the specified node to the shader.

canConnectNodes
bool canConnectNodes(long type, long from_node, long from_port, long to_node, long to_port)

Returns true if the specified nodes and ports can be connected together.

connectNodes
GodotError connectNodes(long type, long from_node, long from_port, long to_node, long to_port)

Connects the specified nodes and ports.

connectNodesForced
void connectNodesForced(long type, long from_node, long from_port, long to_node, long to_port)

Connects the specified nodes and ports, even if they can't be connected. Such connection is invalid and will not function properly.

disconnectNodes
void disconnectNodes(long type, long from_node, long from_port, long to_node, long to_port)

Connects the specified nodes and ports.

getGraphOffset
Vector2 getGraphOffset()
getNode
Ref!VisualShaderNode getNode(long type, long id)

Returns the shader node instance with specified type and id.

getNodeConnections
Array getNodeConnections(long type)

Returns the list of connected nodes with the specified type.

getNodeList
PoolIntArray getNodeList(long type)

Returns the list of all nodes in the shader with the specified type.

getNodePosition
Vector2 getNodePosition(long type, long id)

Returns the position of the specified node within the shader graph.

getValidNodeId
long getValidNodeId(long type)
isNodeConnection
bool isNodeConnection(long type, long from_node, long from_port, long to_node, long to_port)

Returns true if the specified node and port connection exist.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(VisualShader other)
opEquals
bool opEquals(typeof(null) n)
removeNode
void removeNode(long type, long id)

Removes the specified node from the shader.

setGraphOffset
void setGraphOffset(Vector2 offset)
setMode
void setMode(long mode)

Sets the mode of this shader.

setNodePosition
void setNodePosition(long type, long id, Vector2 position)

Sets the position of the specified node.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

graphOffset
Vector2 graphOffset [@property getter]
Vector2 graphOffset [@property setter]

The offset vector of the whole graph.

Static functions

_new
VisualShader _new()

Construct a new instance of VisualShader. Note: use memnew!VisualShader instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta