VisualShaderNodeUniform

Inherits: VisualShaderNode < Resource < RefCounted < Object

Inherited By: VisualShaderNodeBooleanUniform, VisualShaderNodeColorUniform, VisualShaderNodeFloatUniform, VisualShaderNodeIntUniform, 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.

Enumerations

enum Qualifier:

  • QUAL_NONE = 0

  • QUAL_GLOBAL = 1

  • QUAL_INSTANCE = 2

  • QUAL_MAX = 3 --- Represents the size of the Qualifier enum.

Property Descriptions

Default

0

Setter

set_qualifier(value)

Getter

get_qualifier()


Default

""

Setter

set_uniform_name(value)

Getter

get_uniform_name()

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