VisualShaderNodeColorConstant¶
继承¶
VisualShaderNode
简要描述¶
视觉着色器图中要使用的Color常量。
描述¶
有两个输出端口,分别代表[颜色]的RGB和alpha通道。
用着色器语言翻译为vec3 rgb
和float alpha
。
成员¶
类型 | 属性名 | 默认值 |
---|---|---|
Color | constant(#member-constant) | Color( 1, 1, 1, 1 ) |
成员说明¶
- Color constant
Default | Color( 1, 1, 1, 1 ) |
---|---|
setter | set_constant(value) |
getter | get_constant |