Search Unity

Real-time water reflections

Discussion in 'Shaders' started by Unvestigate, Sep 2, 2013.

  1. Unvestigate

    Unvestigate

    Joined:
    Jul 9, 2013
    Posts:
    16
    Hi,

    I have a dynamic mesh grid as the water surface in my game. I animate it over time to simulate waves. I would like the surface to reflect the objects rendered above and partly intersecting (floating on) the surface. First I thought about using a cubemap and standard reflection shader but that only works if the surface is flat.

    Can you point me in the right direction, since I have no idea how I should start tackling this, thanks!

    I have access to Unity Pro, so I can use all the advanced features if needed.
     
  2. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,878
    You can use my "Aubergines Water Shaders" package in the assetstore.
     
  3. Unvestigate

    Unvestigate

    Joined:
    Jul 9, 2013
    Posts:
    16
    Do they work correctly if the water surface geometry is animated (ie. not a flat plane)? In the demo pictures the water always seems to be a flat plane.
     
  4. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,878
    Sure, watch the video here for all shaders.
    http://www.youtube.com/watch?v=fTJp7Sxgi48