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

繼承: VisualShaderNodeConstant < VisualShaderNode < Resource < RefCounted < Object

Color 常數,在視覺化著色器圖中使用。

說明

有兩個輸出埠,表示 Color 的 RGB 和 Alpha 通道。

在著色器語言中被轉換成 vec3 rgbfloat alpha

屬性

Color

constant

Color(1, 1, 1, 1)


屬性說明

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

  • void set_constant(value: Color)

  • Color get_constant()

Color 常數,表示這個節點的狀態。