VisualShaderNodeExpression

Inherits: VisualShaderNodeGroupBase < VisualShaderNode < Resource < Reference < Object

Inherited By: VisualShaderNodeGlobalExpression

A custom visual shader graph expression written in Godot Shading Language.

Description

Custom Godot Shading Language expression, with a custom amount of input and output ports.

The provided code is directly injected into the graph’s matching shader function (vertex, fragment, or light), so it cannot be used to to declare functions, varyings, uniforms, or global constants. See VisualShaderNodeGlobalExpression for such global definitions.

Properties

StringExpression""

Property Descriptions

Default""
Setterset_expression(value)
Getterget_expression()

An expression in Godot Shading Language, which will be injected at the start of the graph’s matching shader function (vertex, fragment, or light), and thus cannot be used to declare functions, varyings, uniforms, or global constants.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:44:25. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.