Lights
灯光
Lights are an essential part of every scene. While meshes and textures define the shape and look of a scene, lights define the color and mood of your 3D environment. You’ll likely work with more than one light in each scene. Making them work together requires a little practice but the results can be quite amazing.
灯光是每个场景的基本部分.一个场景看起来是网格和纹理定义形状,灯光定义颜色和你的3D环境.你可能会在每个场景使用多个灯光.让它们一起工作需要做些练习但结果是惊人的.
A simple, two-light setup
一个简单的两盏灯光设置
Lights can be added to your scene from the GameObject->Light menu. You will choose the light format that you want from the sub-menu that appears. Once a light has been added, you can manipulate it like any other GameObject. Additionally, you can add a Light Component to any selected GameObject by using Component->Rendering->Light.
灯光可以从菜单游戏对象->灯光上添加到你的场景中.你将从子菜单上选择你想要的灯光.一旦一个光源被添加,你就可以像其他游戏对象一样操作它.另外,你可以通过使用组件>渲染>灯光添加一个灯光组件到任何选定游戏对象上.
There are many different options within the Light Component in the Inspector.
有许多不同选项在灯光组件的检视面板上.
Light Component properties in the Inspector
检视面板上的灯光组件属性
By simply changing the Color of a light, you can give a whole different mood to the scene.
仅仅改变灯光的颜色,你就可以给场景一个完全不同的氛围.
Bright, sunny lights
明亮,阳光的灯光
Dark, medieval Lights
黑暗,中世纪似的灯光
Spooky night lights
阴森的夜晚灯光
Rendering paths
渲染通道
Unity supports different Rendering Paths. These paths affect mainly Lights and Shadows, so choosing the correct rendering path depending on your game requirements can improve your project’s performance. For more info about rendering paths you can visit the Rendering paths section.
Unity支持不同渲染通道.这些通道影响主光源和阴影,所以选择正确的渲染通道取决于你的游戏需求可改善你项目的性能.更多关于渲染通道的信息你可以访问”渲染通道”章节.
More information
更多信息
For more information on how lights work see the Lighting Overview page. For more information about using the Light Component, check the Lighting Reference.
更多关于灯光如何工作的信息参考”光照概述”页面.更多关于使用灯光组件的信息,检查灯光组件参考.