ProtoFlux:ValueClamp: Difference between revisions

From Resonite Wiki
Added flux node and rudimentary explanations.
 
m YoshBot moved page ProtoFlux:Value Clamp to ProtoFlux:ValueClamp: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
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 00:40, 21 August 2025

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.