我正在 Unity 中创建一个位置,我的所有树木都在背景中发光,然后当我足够接近时返回到正常颜色。
它也不是天空盒,因为当我禁用它时它仍然会发生。我怎样才能解决这个问题?为什么会发生这种情况?提前致谢
最佳答案
事实证明您只需要更改 Shader至Nature/Soft Occlusion Bark Shader
解决问题。我在 Tree 上找到了这个页面,其中显示:
block 引用>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/