1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 20:35:57 +08:00

Documentation updated

This commit is contained in:
Digvijaysinh Gohil
2024-07-03 00:20:02 +05:30
parent 3cf0e2d38a
commit dc049b857b
8 changed files with 129 additions and 7 deletions

View File

@ -0,0 +1,29 @@
# SmoothMax node
Returns the maximum value between A and B, but smooths out the intersections of A and B based on T. T is the smoothing value if passed 0 function will act as a standard max(), if negative value is passed it will act as <b><i>[SmoothMin node](/documentation/Nodes/Maths/Scalar/SmoothMin.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 maximum between A and B|
**ShaderInc location**
<br>`res://addons/ShaderLib/Maths/Scalar/SmoothMax.gdshaderinc`
**Method signature**
<br>`float smoothmax(float a, float b, float t)`
**Parameters**
|Name|Type|Description|
|---|---|---|
|a|float|Input A|
|b|float|Input B|
|t|float|Smoothing input|
___

View File

@ -0,0 +1,29 @@
# 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 passed 0 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|
___