Search Unity

Question Custom Lighting and shadow control ?

Discussion in 'Shader Graph' started by Kong_Unity_fb, Sep 13, 2019.

  1. Kong_Unity_fb

    Kong_Unity_fb

    Joined:
    Apr 22, 2018
    Posts:
    1
    Hello there, i want to ask about this blogpost
    https://blogs.unity3d.com/2019/07/31/custom-lighting-in-shader-graph-expanding-your-graphs-in-2019/
    which teach me how to begin my quest on doing custom lighting in lwrp.
    But there is one thing this blog does not mention : receive shadow. Since the master node the blog writer use is unlit so it's reasonable.
    However , Iars bertram solve this by using lit master node. The solution post here :
    https://medium.com/@larsbertram1/lwrp-and-custom-lighting-in-shader-graph-6a7c48008a1d

    My result is that thanks to Iars bertram, my shader can cast and receive shadow, have self shadow against light
    ( calculated by using world normal dot light dir , it have custom color light bluish grey, and via step function,
    i made it crispy ). But i can't control the shadow it received from others. How can to solve this ?



    Thanks for reading !