Search Unity

[C#] [Shader] Underwater wave effect

Discussion in 'Scripting' started by Mat_Of_Link, Jul 29, 2014.

  1. Mat_Of_Link

    Mat_Of_Link

    Joined:
    Mar 10, 2014
    Posts:
    15
    Hi everyone

    I'm looking for a shader or something for underwater effect.
    Examples :



    Thank you
     
  2. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    Sigh.. Ok..

    You're not looking for a shader; well nothing from the videos denote that. You're looking for someone to write you a script that emulates the behaviour of being underwater?? which we're not here to do (third time I've wrote this today)

    Watch this:
    just copy what he scripted.
     
  3. Mat_Of_Link

    Mat_Of_Link

    Joined:
    Mar 10, 2014
    Posts:
    15
    Thanks for the reply, but there isn't what I want in this video :/
     
  4. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    what is it you actually want??
     
  5. Mat_Of_Link

    Mat_Of_Link

    Joined:
    Mar 10, 2014
    Posts:
    15
    Maybe I'm wrong but I think the word is : corrugation.
    An other example : the effect on the text
     
  6. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    I'm not sure what its called; I'd just call it water distortion. And you' were right you could do it with shaders. And lucky for you Unity has already done it.

    Look into the standard assets water package. It has water distortion on it's shader.
     
    FuzzyBalls likes this.
  7. Mat_Of_Link

    Mat_Of_Link

    Joined:
    Mar 10, 2014
    Posts:
    15
    Thanks, indeed the effect on the surface looks like it.
    However i thought it would be easier (as i don't know how to use shaders) to make it work on my 2d scene.