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

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.

主站蜘蛛池模板: 兰溪市| 浏阳市| 石棉县| 大邑县| 郸城县| 嘉义县| 孟州市| 苗栗县| 奉新县| 道真| 洛宁县| 宕昌县| 苏尼特右旗| 敦煌市| 安阳县| 宝兴县| 尼玛县| 介休市| 海安县| 渝北区| 孙吴县| 汉川市| 商河县| 滕州市| 肇源县| 含山县| 呼玛县| 军事| 汽车| 青龙| 留坝县| 福泉市| 象州县| 德庆县| 禹州市| 阳山县| 福州市| 城市| 荔浦县| 泰来县| 闵行区|