创建新的 天空盒一种用于展示天空的特殊材质类型。通常是六面体。更多信息
请参见 术语表材质
注意:每种天空盒着色器都有自己的一组先决纹理,它们的数量和纹理格式用于在 3D 图形硬件(如显卡或移动设备)执行实时渲染时处理纹理的文件格式。更多信息
请参见 术语表有所不同。若要了解特定天空盒着色器需要的纹理,请参阅该天空盒着色器的文档。你可以在天空盒着色器页面中找到天空盒着色器的列表及其文档。
创建天空盒材质后,您可以在场景场景包含游戏中的环境和菜单。可以认为每个独特的场景文件是一个独特的关卡。在每个场景中,你可以放置你的环境、障碍物和装饰,本质上以分段的方式设计和构建你的游戏。更多信息
请参见 术语表中渲染它。要做到这一点
此操作将在场景中每个 摄像机创建场景中特定视点图像的组件。输出要么绘制到屏幕,要么作为纹理捕获。 更多信息
参见 术语表 的背景中绘制天空盒。如果您只希望为特定摄像机绘制天空盒,请参见 为特定摄像机绘制天空盒。
如果您只希望在特定摄像机的背景中绘制天空盒,请使用 天空盒组件。将此组件附加到带有摄像机的 游戏对象Unity 场景中的基本对象,可以表示角色、道具、场景、摄像机、路径点等。游戏对象的功能由附加到它的组件定义。 更多信息
参见 术语表 时,它将覆盖摄像机绘制的天空盒。要附加和设置天空盒组件
如果您的天空盒包含太阳、月亮或其他光源,请设置一个定向光源,其指向与光源相同。这样在场景中,天空盒中的光源看上去会产生阴影。如果场景中有多个定向光源,您可以选择天空盒使用哪个定向光源。要执行此操作
如果您希望场景中有雾,请将雾的颜色与天空盒的颜色匹配。此操作会使雾融入到场景天空的颜色。要执行此操作
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.