__天空盒__是整个场景的封装器,可显示几何体之外的世界。
属性: | 功能: |
---|---|
Tint Color | 着色颜色 |
Exposure | 调整天空盒的亮度。 |
Rotation | 更改天空盒围绕正 y 轴的旋转。 |
Front 等 | 用于存储天空盒的立方体每个面的纹理。请注意,将这些纹理置于正确的字段中非常重要。 |
天空盒围绕整个场景渲染,以给人一种远处地平线有复杂风景的印象。在内部,天空盒在所有不透明对象之后渲染;用于渲染天空盒的网格可以是具有六个纹理的盒体,也可以是曲面细分的球体。
要实现天空盒,必须创建天空盒材质。然后,使用 Window > Rendering > Lighting Settings 菜单项,并在 Scene 选项卡上将您的天空盒材质指定为 Skybox,即可将天空盒添加到场景中。
如果要覆盖默认的天空盒,将天空盒__组件__添加到摄像机非常有用。例如,如果您有一款分屏游戏使用两个摄像机,您可能希望第二个摄像机使用不同的天空盒。要将 Skybox 组件添加到摄像机,请通过单击突出显示该摄像机,然后选择 Component > Rendering > Skybox。
如果要创建新的天空盒,请参考此指南。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.