Skybox 天空盒

Date:2011-08-05

Skyboxes are a wrapper around your entire scene that display the vast beyond of your world.

天空盒(Skyboxes)套在你的世界之外的整个巨大场景外。

Skybox  天空盒
One of the default Skyboxes found under Standard Assets->Skyboxes
一个默认的天空盒在Standard Assets->Skyboxes路径。

Properties 属性

  • Material 材质
    The Material used to render the Skybox, which contains 6 Textures. This Material should use the Skybox Shader, and each of the textures should be assigned to the proper global direction.
    用于渲染天空盒的材质,包括6个纹理。这种材质应该用天空盒着色器(Skybox Shader),而每个纹理应该配置适当的全球的方向。

Details 细节

Skyboxes are rendered before anything else in the scene in order to give the impression of complex scenery at the horizon. They are a box of 6 textures, one for each primary direction (+/-X, +/-Y, +/-Z).

为了能有地平线上的复杂风光的感觉,天空盒(Skyboxes)会在渲染场景中的任何东西之前渲染。他们是6个纹理的盒子,1为主要的方向((+/-X, +/-Y, +/-Z).)

You have two options for implementing Skyboxes. You can add them to an individual Camera (usually the main Camera) or you can set up a default Skybox in Render Settings's Skybox Material property. The Render Settings is most useful if you want all Cameras in your scene to share the same Skybox.

你有两个选择执行天空盒(Skyboxes)。你可以把他们添加到单独的相机(通常是主要的相机),或者你可以通过 渲染设置中(Render Settings's)的天空盒材质( Skybox Material )属性来建立一个默认设置的天空盒(Skyboxes)。如果你想场景中所有的相机都能共享相同的天空盒(Skyboxes),渲染设置(Render Settings )是最有用的,

Adding the Skybox Component to a Camera is useful if you want to override the default Skybox set up in the Render Settings. E.g. You might have a split screen game using two Cameras, and want the Second camera to use a different Skybox. To add a Skybox Component to a Camera, click to highlight the Camera and go to Component->Rendering->Skybox.

如果你想覆盖缺省的天空盒(Skybox)渲染设置(Render Settings), 把天空盒(Skybox)组件添加到相机.例如你的分屏游戏可能使用两个摄像头,并希望第二个摄像头,使用不同的天空盒(Skybox)。要添加天空盒(Skybox)组件到相机中,单击使相机突出显示,然后点击Component->Rendering->Skybox.

Unity's Standard Assets contain 2 pre-setup Skybox materials in Standard Assets->Skyboxes.

Unity的标准资源(Standard Assets)包含有2个预设的天空盒(Skybox)材质,路径:Standard Assets->Skyboxes.

If you want to create a new Skybox, use this guide.

如果你想创建一个新的天空盒(Skybox),使用这个指南(use this guide).

Hints 提示:

  • If you have a Skybox assigned to a Camera, make sure to set the Camera's Clear mode to Skybox.
    如果你有一个天空盒(Skybox)赋给了一个相机,一定要把相机的Clear mode 设置为Skybox。
  • It's a good idea to match your Fog color to the skybox's color. Fog color can be set in Render Settings.
    这是一个让雾颜色与天空盒(Skybox)颜色想匹配的好方法。雾颜色可以在渲染设置(Render Settings)设置。
标签: Unity 新版
分类:Components|评论: 0|浏览: 184 翻译: 肥耀
评论
暂无评论
发表评论
用户名:

评论审核后才会显示!