Unity 3.0 Water Shader Shadow Problem

Hi,

I am working on a architectural project. Also i got a directional light with soft shadows. Its doing nice shadows on my room. On the main i am windows using water shader. But i have to disable the shadows on the windows because shadows are doing strange moves on it. With an option on water script named “Disable Pixel Lights” is solving my problem. If i deselect this option shadows on the windows goes away. That solution is ok in Unity 2.6.

I installed Unity 3 today. There is same problem with water shader in new version. Shadow are moving and dancing ugly on my windows. But my solution that working on Unity 2.6 is not working anymore in 3.0. Disabling Pixel Lights is not removing shadows on reflection.

  1. Is there solution to view shadows correctly on water reflection?
  2. How can i disable shadows on water shader/script?

Because i want to use Unity 3.0, but with that shadow problem i m not able to sell this project to my customer. That’s why i am staying on Unity 2.6 :frowning:

Thanks for your help and support.

See here: http://forum.unity3d.com/threads/62083-refracted-water-shadow-artifacts

I had the same problem and I am pretty sure now that it is a bug.

In the above thread you will find a semi-solution. I disabled the the shadows below the water level.

Thanks for your nice advise my friend. I’ll try your water script fixing code. Like you, I don’t want to get the artifacts and the crazy moving shadows anymore. Reflections without shadow is ok for me too.

Salute.

Hi again my friend. I added your shadow distance fixer codes to my Water.cs in Unity 3.0. But i still got shadow on surface :((

I sent my Water.cs. Can you check it? Or please just send your water.cs.

http://www.bulentgercek.com/transfer/Water.cs

Thanks for your help.

There is no problem with your file …

Anyway I know officially now that this is a bug, so we have to wait for a solution from the developers.