Class reference

VisualShaderNodeFloatParameter

Inherits VisualShaderNodeParameter

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

Description

Translated to uniform float in the shader language.

Properties

float default_value = 0.0

A default value to be assigned within the shader.

int hint = 0

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

Constants

HINT_NONE = 0

Enum: Hint

No hint used.

HINT_RANGE = 1

Enum: Hint

A range hint for scalar value, which limits possible input values between min and max. Translated to hint_range(min, max) in shader code.

HINT_RANGE_STEP = 2

Enum: Hint

A range hint for scalar value with step, which limits possible input values between min and max, with a step (increment) of step). Translated to hint_range(min, max, step) in shader code.

HINT_MAX = 3

Enum: Hint

Represents the size of the Hint enum.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.