W3cubDocs

/Godot 3.2

VisualShaderNodeUniform

Inherits: VisualShaderNode < Resource < Reference < Object

Inherited By: VisualShaderNodeBooleanUniform, VisualShaderNodeColorUniform, VisualShaderNodeScalarUniform, VisualShaderNodeTextureUniform, VisualShaderNodeTransformUniform, VisualShaderNodeVec3Uniform

A base type for the uniforms within the visual shader graph.

Description

A uniform represents a variable in the shader which is set externally, i.e. from the ShaderMaterial. Uniforms are exposed as properties in the ShaderMaterial and can be assigned from the inspector or from a script.

Properties

String uniform_name ""

Property Descriptions

String uniform_name

Default ""
Setter set_uniform_name(value)
Getter get_uniform_name()

Name of the uniform, by which it can be accessed through the ShaderMaterial properties.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualshadernodeuniform.html