mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-19 03:55:59 +08:00
847 B
847 B
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 SmoothMax node.
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
res://addons/ShaderLib/Maths/Maths.gdshaderinc
Method signature
float smoothmin(float a, float b, float t)
Parameters
Name | Type | Description |
---|---|---|
a | float | Input A |
b | float | Input B |
t | float | Smoothing input |