Search Unity

Question Shader looks different in scene and game view

Discussion in 'Shader Graph' started by animator84, May 16, 2019.

  1. animator84

    animator84

    Joined:
    Jan 10, 2018
    Posts:
    14
    Hi I'm trying out shadergraph and coming up with some issues.
    I created a toon shader that doesn't require any light in the scene.
    The shader looks ok form the scene view, but on the game camera it looks different.

    https://monosnap.com/file/6HXLWYmGtLMy6d423Js1npvBuyUudL

    Can anyone point me as to what I'm doing wrong? I'm working in LWRP
    If i turn off the default directional light, everything just turns black.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    upload_2019-5-15_23-32-54.png
    Click on that. Your scene view isn't using the scene's lights.
     
    lovewessman and RaL like this.
  3. animator84

    animator84

    Joined:
    Jan 10, 2018
    Posts:
    14
    ah that does it. thanks bgolus!
     
  4. Galactic_Muffin

    Galactic_Muffin

    Joined:
    Aug 14, 2013
    Posts:
    67
    Yep that fixed my problem too, except i was experiencing odd overlay effects as my shader is unlit and my scene lighting was actually on, as always, thanks bgolus!
     
  5. zhaozony

    zhaozony

    Joined:
    Jan 7, 2020
    Posts:
    29
    Im using a URP sprite unlit. Whenever I move my camera far. It appears different in the scene and graph.
     

    Attached Files: