VisualShaderNodeSmoothStep

Inherits: VisualShaderNode < Resource < RefCounted < Object

Calculates a SmoothStep function within the visual shader graph.

Description

Translates to smoothstep(edge0, edge1, x) in the shader language.

Returns 0.0 if x is smaller than edge0 and 1.0 if x is larger than edge1. Otherwise, the return value is interpolated between 0.0 and 1.0 using Hermite polynomials.

Properties

OpType

op_type

0

Enumerations

enum OpType:

  • OP_TYPE_SCALAR = 0 --- A scalar type.

  • OP_TYPE_VECTOR = 1 --- A vector type.

  • OP_TYPE_VECTOR_SCALAR = 2 --- A vector type. edge0 and edge1 are using a scalar type.

  • OP_TYPE_MAX = 3 --- Represents the size of the OpType enum.

Property Descriptions

Default

0

Setter

set_op_type(value)

Getter

get_op_type()

A type of operands and returned value.