- Home /
Global Fog Messy Transition Between Objects and Skybox
I'm using the global fog script that comes with the Unity standard assets image effects and for the most part it's fantastic. However I'd also like the skybox to be visible so I've checked the option to "Exclude Far Pixels". This does the trick but there's a really nasty transition between the objects in the scene and the skybox. Essentially at the transition point there's a flickering line where the script can't seem to decide whether or not to apply fog. The images below illustrate the issue. How might this be solved? Thanks!
It's probably down to how you're doing anti-aliasing, if at all.
I suspect @namey5 is correct. Specifically, it's the order in which you're applying fog/AA. Can you post a scresnshot of the components attached to your camera?
@Namey5 @tanoshimi That was the problem! I disabled antialiasing in the project quality settings and that solved the problem. I was then able to add an AA script to the camera such that it's applied after the fog is calculated. Thanks!
Answer by sirrandalot · Oct 12, 2016 at 06:03 AM
For any wondering, the problem was solved by disabling anti-aliasing in the project quality settings. Afterwards, I was able to add a separate anti-aliasing script to the camera such that it was applied after the fog script.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
On/Off Trigger is making Light Flicker 1 Answer
How do I make a spotlight make a model play an animation? 2 Answers
Individual fog change 0 Answers