Here’s an example of some of the my more basic water. It uses a normal map sampled twice and offset over time. This allows the map to pan across the UVs, giving the illusion of movement. Used with tilable textures the effect is decent. I offset by sin(time) in one direction and adjust the speed and scale of the second normal map to add a little variation. It also uses alpha blending via a frensel term with a slight bias.

Maya CGFX File:

phongnormalpan.cgfx
File Size: 6 kb
File Type: cgfx

Download File


Unity SHADER File:

phongnormalpan.shader
File Size: 9 kb
File Type: shader

Download File


2 Responses

  1. Thanks a lot for all this incredible shaders!
    It will help me a lot to make mine and improve myself in shading. Already share your website with some technical artist I know.
    Keep going 😀

    1. Thanks! Glad its useful. I’ve been a little busy at work and haven’t posted anything in a while, but hopefully i’ll get a bit more time again once the game ships.

Leave a Reply

Your email address will not be published. Required fields are marked *