Types of light 光源类型
本文档主要是对Unity官方手册的个人理解与总结(其实以翻译记录为主:>)
仅作为个人学习使用,不得作为商业用途,欢迎转载,并请注明出处。
文章中涉及到的操作都是基于Unity2018.3版本
参考链接:https://docs.unity3d.com/Manual/Lighting.html
This section details the many different ways of creating light in Unity.
本节详细介绍了在Unity中创建光的许多不同方法。
Point lights 点光源
A point light is located at a point in space and sends light out in all directions equally. The direction of light hitting a surface is the line from the point of contact back to the center of the light object. The intensity diminishes with distance from the light, reaching zero at a specified range. Light intensity is inversely proportional to the square of the distance from the source. This is known as ‘inverse square law’ and is similar to how light behaves in the real world.
点光源位于空间中的一个点上,向各个方向均匀地发射光。光击中表面的方向是从接触点到光物体中心的直线。光强随距离的增加而减小,在一定范围内达到零。光强与光源距离的平方成反比。这就是所谓的“平方反比定律”,类似于光在现实世界中的行为。
Point lights are useful for simulating lamps and other local sources of light in a scene. You can also use them to make a spark or explosion illuminate its surroundings in a convincing way.
点光源对于模拟场景中的灯具和其他局部光源非常有用。你也可以照亮周围来制造火花或爆炸。
Effect of a Point Light in the scene
Spot lights 聚光灯
Like a point light, a spot light has a specified location and range over which the light falls off. However, the spot light is constrained to an angle, resulting in a cone-shaped region of illumination. The center of the cone points in the forward (Z) direction of the light object. Light also diminishes at the edges of the spot light’s cone. Widening the angle increases the width of the co