Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Water Shader Set for Mobile & Desktop (Web Preview & Demo APK)

Discussion in 'Works In Progress - Archive' started by dogmachris, Dec 15, 2015.

  1. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    The shader pack contains 9 flat water shaders for different needs, environments and devices. I've created a short feature video and some screenshots.
    ======================================================================================

    UPDATE 16.02.16:
    I'm currently all covered up in work to get v1.2 done. I had so many feature requests, that I can hardly keep up. I focused mostly on improving the underwater effects, which will have enhanced image effects, like bloom & blur, dual layerd caustics, a custom bubble spawning system, that spawns mophing 3D bubbles while underwater and an improved wet lens effect.

    Also v1.2 supports multiple water surfaces for environments with waterfalls and mountain lakes.

    Since the shaders are alpha blended, they often don't receive fog from custom lighting systems like Tenkoku and Time of day. v1.2 does compensate that by creating a custom fog on the water surface itself, which can be adjusted to blend in nicely with the fog of any lighting system used.

    I've prototyped some preview scenes:













    Screenshots of v1.0 below.
    ===========================================================

    EDIT:

    I've uploaded an RTS-style demo APK. It performs fairly well on a Nexus 7 and very smooth on LGs G3. Don't really know how it performs on other devices. The devices should however be at least mediocre for acceptable performance. Any feedback on performance on different devices is appreciated.
    Download Demo APK>>

    I've also prototyped two web previews:
    RTS-Style Preview >>

    FPS-Style Preview >>
    The refraction becomes quite strong in transparent areas in some cases, that's something, I'll have to solve. Also I might have to do something about the look of the water surface while underwater.

    I've created some scenes to test the shaders. An island scene that uses a water shader with visible bumpiness for lively waters like oceans.





    Another test scene.

    A Lake scene, that uses a shader without visible bumpiness for calm waters like lakes and ponds.

    Multi light support.

    Distorted realtime reflections.

    Underwater effects like view distortion and reduced vision.

    Wet (drying) lens effect when diving up.

    The arctic scene shows the mobile shader. It has most of the features, but is stripped of actual refraction and color absorption for better performance. It uses different colors for shallow and deep water, to give the impression of color absorption.




    Feature video.

    Feedback and suggestions appreciated.
     
    Last edited: Feb 16, 2016
    theANMATOR2b likes this.
  2. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    Amazing, Just would like to test on my Android device.
    I like the effect on the camera when the camera get out of the water.
     
  3. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    I'll have a test scene for android ready soon, I'll send you the download link, when it's ready.

    I must admit, i haven't tested the drying lens effect on my android yet. It's based on a refractive shader, which can be very expensive on mobiles (that's why I didn't test it yet). It might be smooth on newer devices but could cause performance issues on older ones. I'll run a test as soon as I can.
     
  4. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    Thank you.
    You can directly send me a email when ready, lowcostapp a gmail.com
     
  5. PhoenixRising1

    PhoenixRising1

    Joined:
    Sep 12, 2015
    Posts:
    488
    I'd like to test it on my desktop :).
     
  6. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113
    I'd love to give this a test as well if you don't mind. This would come in handy for my game which is in need of water. Thanks, you can email me at (officialwolftech a gmail.com).
     
  7. Magpul

    Magpul

    Joined:
    Aug 27, 2014
    Posts:
    25
    Well it looks very promissing, have you got/plan to have a river shader with directonal waves
     
  8. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    Non-linear water waves are planned for a future update, but I havent tried directing them along a curved river bed yet. It's a great idea though, I didn't think about that yet, thanks. :)
     
  9. Magpul

    Magpul

    Joined:
    Aug 27, 2014
    Posts:
    25
    Your welcome, and i have another idea/suggestion i think it's to much splashes on screen (or maybe it's fault of moment when you took a screenshot ) it would look better if you have less splashes but bigger and after ~1 sec they are drip from monitor that's only my personal thoughts.
    Sorry for my english :)
     
  10. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    I've made it possible to change the splash options in the inspector, because I think, it's a matter of taste - some like it bigger, others might like it smaller. I've created an FPS-style demo, with bigger and fewer splashes (first post). Have a look, and see if you like it better.

    One thing, I'll have to look into, is how to make the surface look better from beneath the surface.

    Oh and your english is fine, don't worry. ;)
     
  11. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    AQUAS has been accepted for the asset store, and is now online.

    Please visit the >>New Thread<< for further information.
     
  12. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,373
    Having some fun with AQUAS:








    The Screens are for the upcoming Update v1.2.