Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Shadergraph normal vector

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

  1. Tulsisvt

    Tulsisvt

    Joined:
    May 5, 2015
    Posts:
    28
    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. Tulsisvt

    Tulsisvt

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

    Mutimir

    Joined:
    Dec 6, 2018
    Posts:
    36
    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 Tulsisvt like this.
  4. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,383
    Tulsisvt likes this.