Table of Contents

Class VisualShaderNodeFloatParameter

A scalar float parameter to be used within the visual shader graph.

Inheritance
VisualShaderNodeFloatParameter

Remarks

Translated to uniform float in the shader language.

Properties

default_value

A default value to be assigned within the shader.

var default_value : float = 0.0

Property Value

float

Remarks

  • void set_default_value(float value)
  • float get_default_value

default_value_enabled

Enables usage of the default_value.

var default_value_enabled : bool = false

Property Value

bool

Remarks

  • void set_default_value_enabled(bool value)
  • bool is_default_value_enabled

hint

A hint applied to the uniform, which controls the values it can take when set through the Inspector.

var hint : int = 0

Property Value

int

Remarks

  • void set_hint(int value)
  • int get_hint

max

Minimum value for range hints. Used if hint is set to VisualShaderNodeFloatParameter.HINT_RANGE or VisualShaderNodeFloatParameter.HINT_RANGE_STEP.

var max : float = 1.0

Property Value

float

Remarks

min

Maximum value for range hints. Used if hint is set to VisualShaderNodeFloatParameter.HINT_RANGE or VisualShaderNodeFloatParameter.HINT_RANGE_STEP.

var min : float = 0.0

Property Value

float

Remarks

step

Step (increment) value for the range hint with step. Used if hint is set to VisualShaderNodeFloatParameter.HINT_RANGE_STEP.

var step : float = 0.1

Property Value

float

Remarks