- Home /
Shadergraph: Getting normal vectors
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?
p.s: Shaderforge does not work with Unity 2018+ versions and that's why I'm looking for a solution using ShaderGraph
Answer by MutimirEr · Jun 27, 2019 at 07:58 AM
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.
Your answer
Follow this Question
Related Questions
URP Blit Render Feature not rendering in Single Pass Instanced VR 0 Answers
Converting c# function to shader. 0 Answers
Fake Volumetrics via custom bloom 0 Answers
How to make shader receive shadows 0 Answers
URP stops a shader from working 0 Answers