Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Shader in game view appears dependent on scene view

Discussion in 'Shader Graph' started by voltairenism, Nov 4, 2020.

  1. voltairenism

    voltairenism

    Joined:
    Nov 1, 2020
    Posts:
    13
    Hello! I'm using the shader graph for the first to get some water effects. It looks awesome on scene view, but when I turn on game view, not so much... Am I forgetting something? There is this weird effect that what I see in game view changes when I change my angle in scene view or when I sized the views.





    Here are images of the nodes, it's a little confusing, but I'm pretty sure I'm just forgetting to turn something on or something like that so the nodes may not be needed.
    Using Depth i calculate the depth, so then I apply it to have a darker color for deeper water, and a lighter for shallow water.


    I use this movement for both the foam and water refraction



    the lerp that connects to the master connects down on FoamColor and Multiply

    Thank you in advance!
     
  2. voltairenism

    voltairenism

    Joined:
    Nov 1, 2020
    Posts:
    13
    Indeed I forgot to turn something on. Opaque texture and depth texture on "Rendering" on my camera settings.