|
gl_round |
Where to find it:
NodeGraph / Right Mouse Click / Add Nodes / Math / Extension Pack / R /
round returns a value equal to the nearest integer to x. The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest. This includes the possibility that round(x) returns the same value as roundEven(x) for all values of x
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/round.xhtml
•X
Specify the value to round
•Output RGB
Separate computation for Input Channels Red, Green, Blue with an Alpha Channel of 1.0
•R
Computation for Input Red channel only, saved into R, G and B channel with an Alpha of 1.0
•G
Computation for Input Green channel only, saved into R, G and B channel with an Alpha of 1.0
•B
Computation for Input Blue channel only, saved into R, G and B channel with an Alpha of 1.0
•A
Computation for Input Alpha channel only, saved into R, G and B channel with an Alpha of 1.0