VisualShaderNodeColorConstant๏ƒ Godot Course

Inherits: VisualShaderNodeConstant < VisualShaderNode < Resource < RefCounted < 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 = Color(1, 1, 1, 1) ๐Ÿ”—

  • void set_constant(value: Color)

  • Color get_constant()

A Color constant which represents a state of this node.