From 19630ba47dd3a33fe04be19001bc28b5df2483d9 Mon Sep 17 00:00:00 2001 From: Alexey Knyazev <3479527+lexaknyazev@users.noreply.github.com> Date: Mon, 13 May 2024 00:00:00 +0000 Subject: [PATCH] Adjust min/max/clamp node descriptions --- .../KHR_interactivity/Specification.adoc | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/extensions/2.0/Khronos/KHR_interactivity/Specification.adoc b/extensions/2.0/Khronos/KHR_interactivity/Specification.adoc index 10226559d7..2431b2fc09 100644 --- a/extensions/2.0/Khronos/KHR_interactivity/Specification.adoc +++ b/extensions/2.0/Khronos/KHR_interactivity/Specification.adoc @@ -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"] @@ -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"] @@ -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 ====