W3cubDocs

/Godot 4.2

VisualShaderNodeColorParameter

Inherits: VisualShaderNodeParameter < VisualShaderNode < Resource < RefCounted < Object

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

Description

Translated to uniform vec4 in the shader language.

Properties

Color

default_value

Color(1, 1, 1, 1)

bool

default_value_enabled

false

Property Descriptions

Color default_value = Color(1, 1, 1, 1)

  • void set_default_value ( Color value )
  • Color get_default_value ( )

A default value to be assigned within the shader.

bool default_value_enabled = false

  • void set_default_value_enabled ( bool value )
  • bool is_default_value_enabled ( )

Enables usage of the default_value.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_visualshadernodecolorparameter.html