多语言展示
当前在线:488今日阅读:19今日分享:20

Unity 使用技巧 之 如何关闭开启的场景的雾效果

Unity 使用技巧 之 如何关闭开启的场景的雾效果。游戏开发中,有时候导入的资源带有雾(Fog)效果,在开发中很影响视角,有时候为了渲染游戏效果,有需要开启雾效果,本节将介绍如何在Unity中关闭打开雾效果的简单案例,具体如下
工具/原料
1

Unity

2

Fog

一、基本概念

Fog:Fog is the effect of overlaying a color onto objects dependant on the distance from the camera. This is used to simulate fog or mist in outdoor environments and is also typically used to hide clipping of objects when a camera’s far clip plane has been moved forward for performance.The Fog effect creates a screen-space fog based on the camera’s depth texture. It supports Linear, Exponential and Exponential Squared fog types. Fog settings should be set in the Scene tab of the Lighting window.

二、如何关闭开启的场景的雾效果
1

打开Unity,导入资源,明显的雾(Fog)效果,影响了视角观察,具体如下图

2

在Unity顶部菜单栏选中“Window”,展开下拉菜单,具体如下图

3

在“Window”下拉菜单中,找到“Lighting”-"Settings",具体如下图

4

弹出的“Lighting”选项框中,在“Scene”面板里,向下滑动界面,找到“Other Settings”一栏,即可看到“Fog”,具体如下图

5

取消勾选“Fog”后面的勾选框,即可看到界面的雾效果消失了,世界感觉霎时清净了,效果具体如下图

6

当然,设置雾,即是勾选上“Fog”后面的勾选框,再在下面的设置里面简单设置,即可设置雾的效果,具体如下图

7

到此,《Unity 使用技巧 之 如何关闭开启的场景的雾效果》讲解结束,谢谢

注意事项

若帮到您,还请帮忙投票以帮助到更多的人;若有疑问,请留言

推荐信息