Table of Contents

Class VisualShaderNodeColorConstant

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

Inheritance
VisualShaderNodeColorConstant

Remarks

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

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

Properties

constant

A Color constant which represents a state of this node.

var constant : Color = Color(1, 1, 1, 1)

Property Value

Color

Remarks

  • void set_constant(Color value)
  • Color get_constant