I want to make a as realistic as possible underwater effect. Any ideas are welcome.
I have been working with fog but that isn’t good enough. Now I figured out that a caustic effect would help too. I have been googling for it and expect for one downloadable project I haven’t found any tutorial for it.
So my question is how do I make a caustic effect in unity3d(I’m working with C#).
Any other tips for making the underwater effect as realistic as possible are very appreciated.
One way you can do this (far from the best way, but it’s quick, easy and it works) is to use Unity’s built-in projectors. There is a shader called Projector/Additive, which is helpful. Then, you just get an animated texture, save each frame as a separate image, and swap out the texture on the material during run time. This will display the caustic, animated, mapping to the sea/river/lake etc. bed. This method will also overlay the caustic on top of dynamic objects, like the player, who might be underwater, too.
To make an even more realistic effect, you might want to look into making godrays to go along with it, which will give you the shafts of light you sometimes see underwater.