1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 11:56:01 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Maths/Scalar/SmoothMin.md
Digvijaysinh Gohil 6c7221cbb7 Documentation updated
2024-07-03 00:22:30 +05:30

29 lines
858 B
Markdown

# SmoothMin node
Returns the minimum value between A and B, but smooths out the intersections of A and B based on T. T is the smoothing value. If 0 is passed at T, function will act as a standard min(), if negative value is passed it will act as <b><i>[SmoothMax node](/documentation/Nodes/Maths/Scalar/SmoothMax.md)</b></i>.
<hr>
**Inputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|a|float|none|Input A|
|b|float|none|Input B|
|t|float|none|Smoothing input|
**Outputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|op|float|None|Smooth minimum between A and B|
**ShaderInc location**
<br>`res://addons/ShaderLib/Maths/Scalar/SmoothMin.gdshaderinc`
**Method signature**
<br>`float smoothmin(float a, float b, float t)`
**Parameters**
|Name|Type|Description|
|---|---|---|
|a|float|Input A|
|b|float|Input B|
|t|float|Smoothing input|
___