Foam is in the Alpha channel of the water's normal map texture.
Standard material shader for what? For your objects? Then yes. Try making a simple cube (GameObject -> Create Other -> Cube) and placing it partially submerged in water. You will see foam because it uses a depth-writing shader.Just checked, there is no foam.
Trees need to be using a shader that's drawn after the water. The water should be drawn first.
So adjust the render queue either of whatever is used to draw your foliage, or the water.
This script can alter the render queue for you without having to modify the shader code: http://www.tasharen.com/forum/index.php?topic=776.msg34546#msg34546 -- you can attach it to the same game object that has Tasharen Water.
What quality settings are you on, and what's your target platform?
I was asking about quality settings, as in, in Unity itself. Quality Settings options page. Not the property on the water script.
No, reflections don't work in the free version of Unity.
http://www.tasharen.com/forum/index.php?topic=1270.msg6636#msg6636
I am using the water and the Multi-Purpose Game Starter Kit,Delete one of the RandomGenerator scripts. Keep only one copy.
i have 2 RandomGenerator.cs scripts, one inside Terrain kit/scripts/ and one inside water example/scripts/
causes this error: Assets/Tasharen/Water Example/Scripts/RandomGenerator.cs(4,14): error CS0101: The namespace `global::' already contains a definition for `RandomGenerator'
Also the TasharenWater shader is throwing an error, which is probably causing the pink water. i get : shader has errors or is not supported by vid card. Im using a firepro w5000 so im sure thats not it.What's the full error message?
the errors it lists below are:
tex2Dproj : no matching 2 parameter intrinsic function; possible intrinsic functions are : tex2Dproj(sampler2d, float4 / half4 / min10float4 / min16float4
implicit truncation of vector type
Edit Update:Don't delete the whole demo. Just the script I mentioned above.
After deleating the tasharen water demo, to get rid of the extra randomgenerator.cs script, i now get 5 now errors:
HelloUse the "Override for Android" checkbox to force it to be Truecolor.
This is my import setting.
Texture already true color.
When camera position is changed, more deteriorated.
Camera Pos : (0,0,0) -> Camera Pos : (1001,0,499)
Ok so fixed it now. What it was apparently was either the ShaderQuality.cs or TWTools.cs script was not present, therefor water was pinkI actually ran into this myself, and it is some issue in Unity. I re-imported the shader and the problem went away.
However in my defense i deleted the "Water Example" folder, which those two scripts where in there. If in fact you need those 2 scripts, or one of them, it might be best to move those to the "Water" folder instead, so people dont delete them as i did.
Thanks for you help and hopefully this will help someone else out.
Hmm... that must be new. You can also resolve it using this then:
float3 projTC = UNITY_PROJ_COORD(IN.proj0).xyz;