I’m not quite sure when it started, but my basic water (both daylight and nighttime) seems to be broken. Previously, whenever I dropped one of the water prefabs into my scene, it would look just fine. However, recently, whenever I’ve imported the water package into my Unity projects, it looks really weird. Here is a screenshot of my editor running with water in the scene: Imgur: The magic of the Internet
The texture moves on the plane, though, as you can see, it doesn’t look anything like waves. I don’t believe this started with a particular update to Unity. I feel like it started around the time I was playing with the imported assets’ settings in a previous project, but, from my understanding, that shouldn’t have affected the new imports in other projects.
I thought it would solve the problem to uninstall Unity and do a fresh install of the latest version, but the problem persists.
I’m running the latest update of Windows 8.1. Not sure if it helps, but my graphics card is an AMD Radeon HD 7700 Series.
I have no idea where to look for a solution to this problem, so I would very much appreciate some help.
One thing to note, after making the change, you have to close unity and restart it to get it to work. It doesn’t seem unity recompiles shaders automatically like it does for scripts.
Any way to add alpha/transparency to standard water?
If you’re a newb like me I’ll save you HOURS of hunting around for the shader in question.
Click on your water in the Hierarchy then in the inspector window look for the dark blue green circle with the words Daylight Simple Water (or whatever water you’re working on). Under that is the shader script. Click edit and wait for the Monodevelop window to show up and then copy the edited lines from the post above to the Monodevelop window and click save. When I went back to Unity after saving in the Moon window the water worked. THANK YOU Mgear for the fix!
mgear thanks a bunch!! You saved me sooooo much time! And yeah, Crono141 is right, it does appear that you have to restart Unity for changes in a shader to take effect.
Looks like its broken again, in the FXWaterPro.shader at the top a comment says “// Upgrade NOTE: replaced ‘_Object2World’ with ‘unity_ObjectToWorld’” Going through the file and reverting back to _Object2World fixed it for me.