Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeColorConstant

Inherits: VisualShaderNodeConstant < VisualShaderNode < Resource < RefCounted < Object

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

描述

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

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

属性

Color

constant

Color(1, 1, 1, 1)


Property Descriptions

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

  • void set_constant ( Color value )

  • Color get_constant ( )

A Color constant which represents a state of this node.