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

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.

主站蜘蛛池模板: 贵定县| 筠连县| 淳化县| 杭锦后旗| 龙口市| 尉氏县| 西丰县| 板桥市| 全州县| 绥芬河市| 巴塘县| 静海县| 南华县| 大竹县| 陵水| 太湖县| 梓潼县| 焉耆| 延庆县| 岐山县| 田林县| 新津县| 册亨县| 西青区| 梨树县| 十堰市| 河北区| 武清区| 邮箱| 松阳县| 曲松县| 朝阳市| 盘锦市| 陈巴尔虎旗| 聊城市| 浠水县| 平和县| 辉南县| 手机| 苗栗市| 布拖县|