Types of light 光照类型 光照系列4

本文详细介绍了Unity中四种主要的光照类型:点光源、聚光灯、平行光和区域光,包括它们的特点和应用场景。点光源向所有方向均匀发射光,常用于模拟灯具;聚光灯形成锥形照明区域,适合作为手电筒效果;平行光常用于模拟太阳光,不受距离影响;区域光产生柔和的漫射阴影,适用于模拟大面积照明。此外,还提到了自发光材质及其在场景照明中的作用。
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值