No fog after assembly

I turned fog on in the rendering settings on my scene. It works great by checking it in the Unity editor, but after opening the game after the build, the fog disappears. I am not sure, but according to some sources on the Internet, I found that Unity3d has problems working with Windows 8.1. Is there any way to fix this?

+4
source share
2 answers

I just had this problem, it is incredibly annoying. What worked for me concerned the Graphics settings and changing the “Shader Stripping” fog modes in manual mode. I hope this helps someone else in the future.

+8
source

. Edit, Project Settings, Graphics, Shader stripping, Fog modes: Manual. , Ubuntu Unity 5.4.1f1 . , .

: void Start()   {       RenderSettings.fogColor = Camera.main.backgroundColor;       RenderSettings.fogDensity = 0.03f;       RenderSettings.fog = true; }

0

Source: https://habr.com/ru/post/1539753/


All Articles