Search Unity

Shadergraph normal vector

Discussion in 'Graphics Experimental Previews' started by poetoaster3006, Apr 1, 2019.

  1. poetoaster3006

    poetoaster3006

    Joined:
    May 5, 2015
    Posts:
    23
    I'm trying to create a toon shader using Shadergraph and I came across a tutorial using Shader Forge which looked really simple compared to the ones using shadergraph.
    They are using light direction and normal direction nodes and performing a dot multiplication to get a standard lit shader and then adding a step value would give a toon shader.
    Is there a node that is equivalent to Normal Dir node in Shadergraph that gets the normal vectors from the object's surface?
     
  2. poetoaster3006

    poetoaster3006

    Joined:
    May 5, 2015
    Posts:
    23
    Update: this is the tutorial link -
     
  3. MutimirEr

    MutimirEr

    Joined:
    Dec 6, 2018
    Posts:
    23
    You need normal vector node and set it to world space. Thats the equivalent of the one he is using in the video at 4 min.
     
    tasume and poetoaster3006 like this.
  4. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    939
    poetoaster3006 likes this.