ProtoFlux:Value Clamp: Difference between revisions

From Resonite Wiki
Added flux node and rudimentary explanations.
 
Updated this page slightly, fixed name of node visual, added warning note about this node.
 
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=Remap
|Name=Clamp
|Category=Math
|Category=Math
|Inputs=
|Inputs=
Line 14: Line 14:
|}}
|}}


The <code>ValueClamp</code> node will force a value to stay within the defined Min and Max.
The '''ValueClamp''' node will force a value to stay within the defined Min and Max.
 
{{Note|There is currently an [https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1530 issue (#1530)] with this node (specifically inclusive vs exclusive).|warning}}


== Inputs ==
== Inputs ==

Latest revision as of 12:35, 26 July 2024

Clamp
Value
*
Min
Max
Math

The ValueClamp node will force a value to stay within the defined Min and Max.

There is currently an issue (#1530) with this node (specifically inclusive vs exclusive).

Inputs

Value (Pseudo-generic)

The value to clamp.

Min (Pseudo-generic)

The forced minimum value for the input.

Max (Pseudo-generic)

The forced maximum value for the input.

Outputs

* (Pseudo-generic)

Returns the result.