Search Unity

Question Shader Graph URP - Planar refleciton for water

Discussion in 'Shader Graph' started by WimB, Jan 4, 2021.

  1. WimB

    WimB

    Joined:
    Sep 23, 2014
    Posts:
    35
    Hi all,

    Could someone advise or point me to a tutorial that has a simple planar reflection setup using URP and shader graph.
    I have already created a water shader, but am struggling to find a tutorial that covers a simple planar reflection, so at the moment I have the classic flipped geometry under the water to achieve a similar effect.

    Any help appreciated
    Regards
     
  2. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
  3. WimB

    WimB

    Joined:
    Sep 23, 2014
    Posts:
    35
    Hey, thanks for the link some nice examples there.
    The reflection example looks nice but seems like a costly way to achieve reflections. They are using a 2nd inverted camera for a render texture applied to the ground.
    Works well but performance wise not the optimum.
    Thanks again
     
    adamgolden likes this.
  4. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,383
    Yeah but planar reflections are exactly that... you can decrease the render scale of that 2nd camera and/or limit the objects reflected by using the layer system.

    Other than planar reflections you can use reflection probes.
     
  5. WimB

    WimB

    Joined:
    Sep 23, 2014
    Posts:
    35
    Thanks for the reply,
    yes good point the layer idea would be come in handy, ill give it a go
    Thanks again