Search Unity

Question Cannot Round World Position coordinates. Bug?

Discussion in 'Shader Graph' started by bunp, Jun 16, 2019.

  1. bunp

    bunp

    Joined:
    Feb 21, 2019
    Posts:
    70
    Is this a bug? I have a shader graph that requires me to round Position - World coordinates, and it doesnt work. If I use a Vec 1 slider from 1 to 10, it works, it rounds to 1, 2, 3, etc, but if I get just the X channel of Position - World, the output of Round is not 1, 2, 3.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,343
    As far as I can tell this is working exactly as it should. Can you explain or show more of what you're trying to do?