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

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 by icons (or as Unity calls them "gizmos"), with lines indicating their direction or their area of influence.

主站蜘蛛池模板: 乌恰县| 剑阁县| 化德县| 视频| 准格尔旗| 都昌县| 象山县| 奉贤区| 周宁县| 尤溪县| 会昌县| 东台市| 恭城| 西吉县| 台东市| 栾城县| 新疆| 资阳市| 富阳市| 台北县| 洞口县| 教育| 德清县| 潞西市| 呼伦贝尔市| 沽源县| 鄂伦春自治旗| 南陵县| 区。| 常山县| 汉源县| 奈曼旗| 磐安县| 宣恩县| 格尔木市| 二手房| 七台河市| 尖扎县| 工布江达县| 集贤县| 会昌县|