您的位置:首页 > 移动开发 > Unity3D

unity3D入门系列十三,如何制作天空盒(SkyBox)(英文)

2013-07-20 09:51 225 查看
unity3D入门系列十三,如何制作天空盒(SkyBox)(英文)

A Skybox is a 6-sided cube that is drawn behind all graphics in the game. Here are the steps to create one:

Make 6 textures that correspond to each of the 6 sides of the skybox and put them into your project's
Assets folder.
For each texture you need to change the wrap mode from
Repeat to Clamp. If you don't do this colors on the edges will not match up:





Create a new Material by choosing
Assets->Create->Material from the menu bar.
Select the shader drop-down in the top of the Inspector, choose
RenderFX->Skybox.
Assign the 6 textures to each texture slot in the material. You can do this by dragging each texture from the
Project View onto the corresponding slots.




To Assign the skybox to the scene you're working on:
Choose Edit->Render Settings from the menu bar.

Drag the new Skybox Material to the Skybox Material slot in the Inspector.





Note that
Standard Assets package contains several ready-to-use skyboxes - this is the quickest way to get started!

www.J2meGame.com精心收集。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: