Maya CGFX File:
phongnormalpan.cgfx |
Unity SHADER File
phongnormalpan.shader |
Cross-Origin-Embedder-Policy="require-corp" Cross-Origin-Opener-Policy="same-origin"
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:
Unity SHADER File
2 Comments
1/12/2016 12:10:31 am
Thanks a lot for all this incredible shaders!
Reply
Gabe
1/12/2016 07:22:57 am
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.
Reply
Leave a Reply. |
CG ShadersShaders I've built as i teach myself CG. Feel free to download and use for whatever. If you like them you can buy me a beer or something. Archives
December 2014
Categories |