Search Unity

Question What is this style of shader called?

Discussion in 'Shader Graph' started by DarkEcho, Nov 8, 2020.

  1. DarkEcho

    DarkEcho

    Joined:
    Jul 7, 2014
    Posts:
    233
    What is this style of Shader called? (If it has a name)

    In the Terrain Shader linked below, the edges of the painted textures have a sharp, cartoon edge.

    https://video.twimg.com/tweet_video/D3KHHbJWAAA7dZB.mp4
    (The video is from Twitter, the forum will not let me embed it)

    Question 1) What is this style of Shader called? (If it has a name)
    Question 2) How is this achieved in Shader Graph? (Spent all day since 9am yesterday trying to find a tutorial, it does not exist)

    [Note]
    I have been told the theory that gradients and lerps play a part, but I do not know how to implement these. So a practical example is what is needed.
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Maybe you could next time take a screenshot and include it to your posts, so that we don't have to visit external links?

    1: One could say the style looks "stylized", but that does not tell much. Some might call it flat-look or semi-flat.

    2: You could use the lighting direction and make a custom shading gradient. Have a look at some of the toon shaders, the principle is the same. You find many by just using some google-fu, but here's two:
    https://danielilett.com/2020-03-21-tut5-urp-cel-shading/
    https://connect.unity.com/p/zelda-inspired-toon-shading-in-shadergraph

    It's probably better to go through a few shader and Shader Graph tutorials so that you actually understand what you need to look for, when it comes to constructing the actual effect.