Skip to content

Commit 595b494

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.3] DOCG-8164 Clarify Shader Graph Fraction node
1 parent b0fbaa7 commit 595b494

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Packages/com.unity.shadergraph/Documentation~/Fraction-Node.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
# Fraction Node
1+
# Fraction node
22

3-
## Description
3+
The Fraction node returns the fractional part of an input, also known as the decimal part. The range is 0 to 1. For example, the fractional part of 3.75 is 0.75.
44

5-
Returns the fractional (or decimal) part of input **In**; which is greater than or equal to 0 and less than 1.
5+
The Fraction node calculates the result using the following formula:
6+
7+
```
8+
fractional_part = input - floor(input)
9+
```
10+
11+
As a result, the node returns a positive value if you input a negative number. For example, the fractional part of -3.75 is 0.25.
612

713
## Ports
814

0 commit comments

Comments
 (0)