VisualShaderNodeVectorSmoothStep¶
Inherits: VisualShaderNode < Resource < Reference < Object
在可视化着色器图中计算一个向量SmoothStep函数。
描述¶
在着色器语言中转换成smoothstep(edge0, edge1, x)
,其中x
是一个向量。
如果x
小于edge0
,返回0.0
,如果x
大于edge1
,返回1.0
。否则返回值在0.0
和1.0
之间使用Hermite多项式进行插值。