VisualShaderNodeVec4Uniform

Inherits: VisualShaderNodeUniform < VisualShaderNode < Resource < RefCounted < Object

A 4D vector (represented as a Quaternion) uniform to be used within the visual shader graph.

Description

Translated to uniform vec4 in the shader language.

Properties

Quaternion

default_value

Quaternion(0, 0, 0, 1)

bool

default_value_enabled

false

Property Descriptions

Default

Quaternion(0, 0, 0, 1)

Setter

set_default_value(value)

Getter

get_default_value()

A default value to be assigned within the shader.


  • bool default_value_enabled

Default

false

Setter

set_default_value_enabled(value)

Getter

is_default_value_enabled()

Enables usage of the default_value.