Search Unity

Question Point lighting with shader graph

Discussion in 'Shader Graph' started by wladeek, Jul 17, 2019.

  1. wladeek

    wladeek

    Joined:
    Jul 11, 2019
    Posts:
    3
    Hello,
    I made shader graph to create planet colors based on vertices height following this tutorial:

    But it works with directional light only. Is it possible to make this shader work with point light? I'm very noob at these shader things at the moment and I don't even know where to find information about how to do point light.
    Thanks in advance.

    DirectionalLight.PNG PointLight.PNG Graph.PNG
     
  2. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    Did you try to increase emission of point light?

    I had the similar issue but finally noticed that point lights need more strength.
     
  3. wladeek

    wladeek

    Joined:
    Jul 11, 2019
    Posts:
    3
    Do you mean Intensity? If so it didn't help. Otherwise I don't know where to find emission property.
     
  4. CraigMurray100

    CraigMurray100

    Joined:
    Oct 10, 2019
    Posts:
    3
    Did you ever figure this out? I'm having the exact same issue. Even if I create my shader from the "2d lit sprite" type the point lights do not render at all, but global light does. (using all the new 2D experimental lights).

    This is a serious serious bummer for me.... It means if i want to use the cool new 2d point lights i cannot use ANY shader graphs? Ugh.
     
  5. wladeek

    wladeek

    Joined:
    Jul 11, 2019
    Posts:
    3
    I decided to do texture generation based on height instead of using shaders for coloring planets in real time. I couldn't find out if shader graph support point light or how to do that.
     
  6. burly87

    burly87

    Joined:
    Apr 13, 2018
    Posts:
    1
    Any good tutorial to apply that to your procedural planets?