Warning: Creating default object from empty value in /home/thetoucher/blog/wp-content/themes/simplicity/functions/admin-hooks.php on line 160

“Puddle Shader” – wet ground shader

Another repost, early work done on a wet ground / puddle shader, part of  ”AHS One”.

So last night after work I had an idea on how I might be able to build a very fast and inexpessive puddle / wet ground shader, so I spent a few hours knocking out the basics, tidyed it up just now and thought I would share the progress, I’m pretty happy so far, still a way to go yet though.

(I recommend you watch it 720p, looks way cleaner)

The video starts with dry normal ground, it is some free dirt texure I found online. The big blue ball grows to reveal the puddle shader applied to the same material.

The puddles are based off the parallax map, the shader assumes ‘low’ areas are full of water. In theory it works with any ‘ground texure’ with a parallax map. It’s pretty ‘analogue’ in that you can pass a value from 0 (no water) to 1 (completely covered in water) or anwhere in between, so it will support varying amounts of wetness or heaviness of rain.

I plan to pair this with a rain effect and fake rain drop distortion applied to the reflection.

Tags:

No comments yet.

Leave a Reply