Search Unity

Help Wanted World Position and Normal Vector behaving strangely

Discussion in 'Shader Graph' started by starmallard, Sep 8, 2019.

  1. starmallard

    starmallard

    Joined:
    Apr 2, 2018
    Posts:
    2
    I was following along with this guide here in my own Unity project:
    https://blogs.unity3d.com/2019/07/31/custom-lighting-in-shader-graph-expanding-your-graphs-in-2019/

    I realized that my position nodes were looking somewhat strange compared to the ones from the tutorial. I downloaded the files from the tutorial and went to create a position node in the tutorial project and the preview looked like the one in the tutorial. I created a new project to see if it was just the project I was working on that was acting up, but even in a fresh Unity project it was still doing the same thing as before. I've noticed in all other pictures of the position node preview, they look like the one on the right. I'm not exactly sure what is happening here, but it is affecting calculations.

    WorldPosNormal.PNG
    (Left: new Unity project, Right: downloaded Unity project)
    These were both opened in Unity 2019.2.4f1.

    Any help would be appreciated.
     
  2. starmallard

    starmallard

    Joined:
    Apr 2, 2018
    Posts:
    2
    After testing and experimentation, I figured out what it was.
    In the Project Settings->Player->Rendering, I had to change Color Space to Linear from Gamma.
    Gamma.PNG
     
    fffMalzbier likes this.