官术网_书友最值得收藏!

Time for action – Adding a light

Let's add one of these virtual lights to our Scene so that we can see our objects a bit better.

  1. In the Scene view frame, click the Wireframe button and switch to Textured rendering. Then click on the little light icon (it looks like a sun) a few buttons over to see the effects of our (as-yet-non-existent) lighting. Your ball and paddle should look as dreary and dark gray as they do in the Game view.
  2. In the menu, click on Game Object | Create Other. The three types of lights that Unity supports are listed there: point light, spotlight, and directional light.
  3. Choose Directional Light.

A new directional light is added to the Scene. The icon also looks like a little yellow sun. When the light is selected (as it is now), a tube of yellow rays shoot out from it. This tube shows us which way the light is pointing.

Notice that one side of your ball is now lit, and the objects in the Game view have brightened up.

主站蜘蛛池模板: 灌云县| 洪湖市| 永顺县| 卢龙县| 突泉县| 东乌珠穆沁旗| 临湘市| 德州市| 五常市| 伊金霍洛旗| 永和县| 宜君县| 丹棱县| 清水河县| 龙川县| 柳河县| 碌曲县| 八宿县| 诸暨市| 城口县| 内丘县| 孟州市| 冀州市| 西平县| 环江| 鹿邑县| 资源县| 神木县| 钦州市| 射洪县| 四子王旗| 富阳市| 安远县| 定边县| 平昌县| 玉门市| 赞皇县| 赣榆县| 东光县| 大关县| 柞水县|