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

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:

  1. Make 6 textures that correspond to each of the 6 sides of the skybox and put them into your project's Assets folder.
  2. 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:
    点击浏览下一页
  3. Create a new Material by choosing Assets->Create->Material from the menu bar.
  4. Select the shader drop-down in the top of the Inspector, choose RenderFX->Skybox.
  5. 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:

  1. Choose Edit->Render Settings from the menu bar.
  2. 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精心收集。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值