W3cubDocs

/Godot 3.2

VisualShaderNodeColorConstant

Inherits: VisualShaderNode < Resource < Reference < Object

A Color constant to be used within the visual shader graph.

Description

Has two output ports representing RGB and alpha channels of Color.

Translated to vec3 rgb and float alpha in the shader language.

Properties

Color constant Color( 1, 1, 1, 1 )

Property Descriptions

Color constant

Default Color( 1, 1, 1, 1 )
Setter set_constant(value)
Getter get_constant()

A Color constant which represents a state of this node.

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