unity-game-engine - 为什么我的树在背景中发出明亮的白色光芒?

标签 unity-game-engine

我正在 Unity 中创建一个位置,我的所有树木都在背景中发光,然后当我足够接近时返回到正常颜色。

picture

它也不是天空盒,因为当我禁用它时它仍然会发生。我怎样才能解决这个问题?为什么会发生这种情况?提前致谢

最佳答案

事实证明您只需要更改 ShaderNature/Soft Occlusion Bark Shader解决问题。我在 Tree 上找到了这个页面,其中显示:

Trees must use the Nature/Soft Occlusion Leaves and Nature/Soft Occlusion Bark shader. In order to use those shaders you also have to place the tree in a special folder that contains the name "Ambient-Occlusion". When you place a model in that folder and reimport it, Unity will calculate soft ambient occlusion specialized for trees. The "Nature/Soft Occlusion" shaders need this information. If you don't follow the naming conventions the tree will look weird with completely black parts.

希望这有帮助!

关于unity-game-engine - 为什么我的树在背景中发出明亮的白色光芒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12110274/

相关文章:

android - unity project as library和android project后manifests出现错误

unity-game-engine - 在 Unity 5 中添加 UV 贴图 Material 不起作用

c# - 内部类构造函数...这有效吗?

c# - Unity中的自定义编辑器继承

unity-game-engine - Unity3D HLAPI 网络单人游戏开销

ios - 在 Unity iOS 中集成 Adob​​e Omniture

c# - 在多摄像头的情况下使用 RayCast 在 Sprite 上捕获触摸

ios - Unity/Videoplayer - 如果我加载下一个视频,游戏有时会崩溃

c# - Unity 跑酷游戏中的对象池实现(重用)

python - unity .bytes 文件的用途是什么?