Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Get "mesh height" in the Sharder Graph

Discussion in 'Shader Graph' started by Gydhia, Jan 12, 2021.

  1. Gydhia


    Jan 12, 2021
    Hello !
    I'm kinda new on the shader graph, and there are some principles that are hard for me to understand.

    Actually I want to make a shader that simply fill a mesh from bottom to top according to a certain percentage which i settled as parameter.

    But it's not filling proportionnaly, so I'd like to add it with : selected% * height / 100, but I can't figure where to get the "height" or anything that I could use as a height.

    Here's the screenshot, I would change the 2nd substract with the method that I described.

    Thanks for your help !