-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: fract node #2163
Comments
@pablode Although we have a standard answer for this -- Would it help to document that |
I decided against using modulo because it's much more expensive to evaluate (in terms of GPU clock cycles). It simply includes operations that are not necessary for this specific purpose. Besides, I believe that a node of the name |
Ah, I see what you mean, and it's true that I'd be fine with adding a dedicated |
In addition to
floor
,ceil
, etc., it would be nice to have a node that represents thefract
instrinsic that many shader languages have.The implementation is rather simple:
x - floor(x)
.As for the benefits, shading networks would be easier to read and less compex (trade two nodes for one).
The text was updated successfully, but these errors were encountered: