I am building a Unity Game that has fog as a component in the lighting window. I disabled "Auto Generate" because I switch scenes and I need the lighting to instantly update.
![alt text][1]
The fog is working perfectly when I run the game in Unity and when I build the game for PC & Mac. However, when I build the game for iOS the fog stops working.
I am running the game on Metal. I have disabled OpenGLES2 because according to https://docs.unity3d.com/Manual/PostProcessing-Fog.html
a requirement of fog is depth textures. And according to
https://docs.unity3d.com/540/Documentation/Manual/GraphicsEmulation.html
only OpenGLES3 and Metal support depth textures. So, I have come to the conclusion that only Metal supports shadows on iOS.
Side note: I tried using OpenGLES2 on my game for iPhone and the result was not ideal. The lighting broken. But this is beside the point.
When I ran my game on iOS using Metal, (and the log on Xcode shows that it was using metal), there were still no shadows. I am still a beginner to unity (this is my first game), so maybe there is something I am not realizing?
Any ideas? Thanks in advance!
↧