Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Feedback Using built-in shader variables

Discussion in 'Shader Graph' started by Kabie, Apr 16, 2019.

  1. Kabie

    Kabie

    Joined:
    Dec 29, 2015
    Posts:
    2
    Hi!

    I was trying to add main light direction to my graph, and saw this post:
    https://forum.unity.com/threads/shader-graph-light-direction.615316/#post-4238956

    This works. However unity keeps warning me that be trying to set a built-in parameter while editing graph.

    Then I tried to use `_MainLightPosition` from LWRP instead, this time it told me that I'm redefining it.

    So I use it in a custom function node,and it actually works.

    The problem is the graph preview is broken, even though the shader compiles.

    I wander if any of those issues could be fixed. Thanks!
     
  2. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    923