Skip to content

Commit

Permalink
Adjust min/max/clamp node descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lexaknyazev committed May 13, 2024
1 parent 32fd170 commit 19630ba
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions extensions/2.0/Khronos/KHR_interactivity/Specification.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,18 @@ For `float4x4` arguments, this operation performs per-component multiplication.
| `floatN value` | Smallest of the arguments
|===

For the purposes of this node, negative zero is less than positive zero.

[NOTE]
.Note
====
This is implementable in ECMAScript via the following expression:
[source,js]
----
Math.min(a, b)
----
====

===== Maximum

[cols="1h,1,2"]
Expand All @@ -485,6 +497,18 @@ For `float4x4` arguments, this operation performs per-component multiplication.
| `floatN value` | Largest of the arguments
|===

For the purposes of this node, negative zero is less than positive zero.

[NOTE]
.Note
====
This is implementable in ECMAScript via the following expression:
[source,js]
----
Math.max(a, b)
----
====

===== Clamp

[cols="1h,1,2"]
Expand All @@ -498,6 +522,8 @@ For `float4x4` arguments, this operation performs per-component multiplication.
| `floatN value` | latexmath:[min(max(a, min(b, c)), max(b, c))]
|===

This node relies on `math/min` and `math/max` nodes defined above.

[NOTE]
.Note
====
Expand Down

0 comments on commit 19630ba

Please sign in to comment.