Can't open include file "WaterInclude.cginc"

Hi,
in one of my projects I’m using one of the sample assets: Water4 (simple)

the asset is really cool but when I try to build, I keep getting this error:

Shader error in 'FX/Water4': Can't find include file WaterInclude.cginc at line 43

What I don’t understand is that the file is there (as shown on the picture below)

[33026-screen+shot+2014-09-28+at+11.37.15.png|33026]

I guess it’s probably because the include doesn’t search in the right folder. Is there like a Classpath that I have to set somewhere?

1 Answer

1

Just hapened to me when upgrading from Unity 5 > 5.0.1.

Just select WaterInclude.cginc on your Project tab, right click >> reimport. Should do the trick.