I have created my water got it looking good enough, got underwater fog added, now I need to figure out why underneath the water is not transparent so I cannot see the sky from underneath, how can I fix this?
You need a 2-sided shader or you need to add backfaces to your mesh.
Is taht an easy process, I have never messed with shaders
I’d probably do it to the mesh. Just duplicate your mesh and flip the normals.
I have duplicated it and flipped the normals how I usually do, but that did not work, is it because I am using a custom material and a custom mesh?
There should be no issue with using a custom mesh. What kind of material are you using?
same as the default ocean plane prefab, fx/water4. or something like that, but I have edited every value and that made a difference on the water transparency so I was thinking that may be messing with water transparency underneath also. I changed all 3 color values also, could that be affecting it? do I need one of those colors to be black or white?
ah, perhaps the material calculates its own normals or something. I’m afraid I haven’t used the unity default water shader much.
I am afraid shaders are not something I wanted to get into at this stage of my game, is there any free assets or anything you know of? Or is this a problem with the default shaders that I may just have to live with for now?
Your guess about the shader needing directional sounds like it could be correct. I’d solve it by always making sure there is at least a little directional light in your scene, maybe a dark blue one at night to emulate the moon. But every shader is different! And I don’t have a ton of experience with the Unity’s default water shader. You don’t need to know how to make shaders to overcome your issue. You could try a different shader. There’s also no reason you can’t use an entirely different material for the bottom of your water.
Yeah it was, I thought my script was alot more complicated than it was, so I was gonna wait till morning to test out my fix but decided to give it a try at the last minute. setting the directional light to .01 rather than just 0 fixed the problem completely, I am messing around with my underwater script at the moment and am still attempting to fix the underwater transparency issue, what other shader would I use?
Without using the default shader I would not know what direction to take, shaders and textures and such are things I am not good with and this game/project I am working on now I was trying to avoid getting into them too much with, so creating them from scratch is the only other thing I can think of and I would like to avoid that if at all possible.
If you want better water/sea, there’s quite a few packages in asset store (with included underwater effects) and much better looking water surface…
To make shader display both sides, can just add 1 line in shader:
Cull Off
But lighting would be still probably bad, since normal’s are wrong way…
Are there any free assets in the store all I have found were free demos. I am making a game completely for free the first time around, I will attempt adding a line to the shader and mess around with that, what do you mean lighting would still be bad? I have fixed the invisible water issue and lighting is fine now.
EDIT: the line cull off is already in teh default shader is there a certain place I should put it?