Skip to content

Commit f88cfb5

Browse files
committed
Update MaterialX.Specification.md
Add note about integer output variants for floor, ceil, round
1 parent 6b2f11e commit f88cfb5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

documents/Specification/inprog_v1.39/MaterialX.Specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,17 +1030,17 @@ Math nodes have one or two spatially-varying inputs, and are used to perform a m
10301030

10311031
<a id="node-floor"> </a>
10321032

1033-
* **`floor`**: the per-channel nearest integer value less than or equal to the incoming float/color/vector; the output remains in floating point per-channel, i.e. the same type as the input.
1033+
* **`floor`**: the per-channel nearest integer value less than or equal to the incoming float/color/vector. The output remains in floating point per-channel, i.e. the same type as the input, except that the floor(float) also has a variant outputting an integer type.
10341034
* `in` (float or color<em>N</em> or vector<em>N</em>): the input value or nodename
10351035

10361036
<a id="node-ceil"> </a>
10371037

1038-
* **`ceil`**: the per-channel nearest integer value greater than or equal to the incoming float/color/vector; the output remains in floating point per-channel, i.e. the same type as the input.
1038+
* **`ceil`**: the per-channel nearest integer value greater than or equal to the incoming float/color/vector. The output remains in floating point per-channel, i.e. the same type as the input, except that the ceil(float) also has a variant outputting an integer type.
10391039
* `in` (float or color<em>N</em> or vector<em>N</em>): the input value or nodename
10401040

10411041
<a id="node-round"> </a>
10421042

1043-
* **`round`**: round each channel of the incoming float/color/vector values to the nearest integer value, e.g "floor(in+0.5)".
1043+
* **`round`**: round each channel of the incoming float/color/vector values to the nearest integer value, e.g "floor(in+0.5)"; the round(float) also has a variant outputting an integer type.
10441044
* `in` (float or color<em>N</em> or vector<em>N</em>): the input value or nodename
10451045

10461046
<a id="node-power"> </a>

0 commit comments

Comments
 (0)