- Home /
What is this random grey line and how do I get rid of it?
The fix for this is probably very easy but I can't seem to find a fix for it. I tried extending the water more but that didnt work. Any ideas? http://gyazo.com/9a4d79255dba6db6f63e67ca602dd636
Answer by Klarax · Feb 03, 2014 at 01:07 PM
Looks like the skybox is at fault. Try using a different one (if using one at all) that comes down further. If not using one, do so :)
The only problem with that is that im using an asset that has a day and night cycle
You can fade between skyboxes for time of day fade http://wiki.unity3d.com/index.php?title=SkyboxBlended
and you can use a shader to change the texture of an asset
Shader "Custom/AlphaBlendTransition" {
Properties {
_Blend ("Blend", Range (0, 1) ) = 0.0
_BaseTexture ("Base Texture", 2D) = "" {}
_OverlayTexture ("Texture 2 with alpha", 2D) = "" {}
}
SubShader {
Pass {
SetTexture[_BaseTexture]
SetTexture[_OverlayTexture] {
ConstantColor (0,0,0, [_Blend])
combine texture Lerp(constant) previous
}
}
}
}
I think maybe if I add a fog for the distance that could fix it?
fog will likely hide it, but i always find fog to be temperamental
use really low values or you hole scene will be covered :P
Your answer
Follow this Question
Related Questions
Shader grey on Android? 0 Answers
Reflecting LineRenderer in water 0 Answers
Gray water problem 1 Answer
Easy way to make a custom toon water shader 1 Answer
Water Glitch from Near Clipping Plane. 0 Answers