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

Keeping yourself in the dark

If you've kept an eye on the Game view, which is what the player sees, you've noticed that the Mesh Game Objects in our Scene are a dark, dreary gray color. Would you believe me if I told you they're actually closer to white?

Just like on a real movie or teevee set, 3D scenes require lights to illuminate objects. The lights aren't actually "real" objects (like our Ball and Paddle meshes) they're virtual objects in 3D space that determine whether the faces on a mesh will appear bright or dark. The computer figures this out for us based on the kind of light we use, the way we position and rotate it, and the settings we give it.

So, while you can move a light around your scene just like the Ball or the Paddle, there's no actual geometry or triangles comprising the light. Lights aren't made of triangles, they're made of data. In Unity, as in many 3D programs, lights are represented in the Scene view by icons (or as Unity calls them—"gizmos"), with lines indicating their direction or their area of influence.

主站蜘蛛池模板: 简阳市| 新丰县| 黑龙江省| 平昌县| 三门县| 大名县| 鹤山市| 基隆市| 胶南市| 中方县| 东辽县| 萨嘎县| 泰兴市| 军事| 平潭县| 洱源县| 安图县| 宜昌市| 新竹市| 政和县| 邵武市| 江北区| 会泽县| 房产| 靖边县| 四平市| 赤峰市| 余姚市| 巴彦县| 泽州县| 广灵县| 辉南县| 马鞍山市| 扶风县| 丹东市| 晋州市| 永宁县| 共和县| 什邡市| 比如县| 韩城市|