Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.67 KB

class_visualshadernodecolorconstant.rst

File metadata and controls

46 lines (30 loc) · 1.67 KB
github_url:hide

VisualShaderNodeColorConstant

Inherits: :ref:`VisualShaderNode<class_VisualShaderNode>` < :ref:`Resource<class_Resource>` < :ref:`Reference<class_Reference>` < :ref:`Object<class_Object>`

A :ref:`Color<class_Color>` constant to be used within the visual shader graph.

Description

Has two output ports representing RGB and alpha channels of :ref:`Color<class_Color>`.

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

Properties

:ref:`Color<class_Color>` :ref:`constant<class_VisualShaderNodeColorConstant_property_constant>` Color( 1, 1, 1, 1 )

Property Descriptions

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

A :ref:`Color<class_Color>` constant which represents a state of this node.