anyone know how to make a shader for water?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    The forums have been archived. Please read this thread for more information.

    • anyone know how to make a shader for water?

      Hello everyone! I was working on a 3D RPG game for the pc and iphone using agk. Since agk runs on opengl, it supports glsl shaders. I have worked a little with the syntax of the coding, but I have never found out a way to make a water shader for an object (like a square surface) work.
      The water shader would have two parts ( I almost got the first part working):

      1. make waves on the surface
      2. make it reflect objects

      For the first shader I sort of got it to make different wave type motions, but it tends to move in one huge uniform movement... got the shader idea from wavy grass (another shader I did). I thank anyone who can help! *brofist*