天空是摄像机在渲染帧之前绘制的一种背景类型。此类型的背景对于 3D 游戏和应用程序非常有用,因为它可以提供深度感,使环境看上去比实际大小大得多。天空本身可以包含任何对象(例如云、山脉、建筑物和其他无法触及的对象)以营造遥远三维环境的感觉。Unity 还可以将天空用于在场景中产生真实的环境光照。
具体可以使用的天空解决方案取决于项目使用的渲染管线。
渲染管线 | 天空解决方案 |
---|---|
内置渲染管线 | 内置渲染管线使用天空盒材质为摄像机定义要绘制的天空。可以按场景指定天空,也可以覆盖单个摄像机的天空。 • 有关如何按场景设置天空的信息,请参阅 Lighting 窗口文档。 • 有关如何覆盖特定摄像机的天空的信息,请参阅 Skybox 组件文档。 |
通用渲染管线 (URP) | URP 将同一天空解决方案用作内置渲染管线,并允许按场景指定天空以及覆盖单个摄像机的天空。 • 有关如何按场景设置天空的信息,请参阅 Lighting 窗口文档。 • 有关如何覆盖特定摄像机的天空的信息,请参阅 Skybox 组件文档。 |
高清渲染管线 (HDRP) | HDRP 包含自己使用体积系统的天空解决方案。每个体积可以包含一个覆盖以指定要绘制的天空类型。每个摄像机都会在影响它的每个体积的天空设置之间进行插值,并绘制结果。 有关如何在 HDRP 中创建天空的信息,请参阅视觉环境文档。 |
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.