unity Lighting总结

上一篇博客已经详细的介绍GI了,接下来我们讲点实际的,怎么烘焙场景及注意事项。

一、Light

Property: Function:
Type 当前灯光的类型。有四种类型:Directional, Point, Spot and Area。
Range 灯光照射的距离 (只有Point和Spot光源有这个属性).
Spot Angle 聚光灯照射范围所张开的角度(Spot light only).
Color 光的颜色
Mode 指定光的模式. 三种模式 Realtime, Mixed and Baked。
Intensity 光照强度
Indirect Multiplier 改变间接光的强度,间接光光线从一个对象反弹到另一个对象。如果值大于1则反射光将变得更亮,小于1反射光暗淡
Shadow Type 阴影类型:Hard Shadows, Soft Shadows, or no shadows 。
    Baked Shadow Angle 烘焙时,软化边缘阴影,让他们看起来更自然。(Directional )
    Baked Shadow Radius 烘焙时,软化边缘阴影,让他们看起来更自然。(Point or Spot)
    Realtime Shadows 实时阴影。
        Strength Use the slider to control how dark the shadows cast by this Light are, represented by a value between 0 and 1. This is set to 1 by default.
        Resolution Control the rendered resolution of shadow maps. A higher resolution increases the fidelity of shadows, but requires more GPU time and memory usage.
        Bias Use the slider to control the distance at which shadows are pushed away from the light, defined as a value between 0 and 2. This is useful for avoiding false self-shadowing artifacts. See Shadow mapping and the bias property for more information. This is set to 0.05 by default.
        Normal Bias Use the slider to control distance at which the shadow casting surfaces are shrunk along the surface normal, defined as a value between 0 and 3. This is useful for avoiding false self-shadowing artifacts. See documentation on Shadow mapping and the bias property for more information. This is set to 0.4 by default.
        Near Plane Use the slider to control the value for the near clip plane when rendering shadows, defined as a value between 0.1 and 10. This value is clamped to 0.1 units or 1% of the light’s Range property, whichever is lower. This is set to 0.2 by default.
Cookie Specify a Texture mask through which shadows are cast (for example, to create silhouettes, or patterned illumination for the Light).
Draw Halo Tick this box to draw a spherical Halo of light with a diameter equal to the Range value. You can also use the Halo component to achieve this. Note that the Halo component is drawn in addition to the halo from the Light component, and that the Halo component’s Size parameter determines its radius, not its diameter.
Flare If you want to set a Flare to be rendered at the Light’s position, place an Asset in this field to be used as its source.
Render Mode Use this drop-down to set the rendering priority of the selected Light. This can affect lighting fidelity and performance (see Performance Considerations, below).
    Auto The rendering method is determined at run time, depending on the brightness of nearby lights and the current Quality Settings.
    Important The light is always rendered at per-pixel quality. Use Important mode only for the most noticeable visual effects (for example, the headlights of a player’s car).
    Not Important The light is always rendered in a faster, vertex/object light mode.
Culling Mask Use this to selectively exclude groups of objects from being affected by the Light. For more information, see Layers.

时间: 2024-08-03 16:27:53

unity Lighting总结的相关文章

Unity Lighting - Lighting overview 照明概述

Lighting overview 照明概述 In order to calculate the shading of a 3D object, Unity needs to know the intensity, direction and color of the light that falls on it. 为了计算3D物体的阴影,Unity需要知道落在它上面的光的强度,方向和颜色. These properties are provided by Light objects in th

Unity Lighting - Light Probes 光照探针(十)

Light Probes 光照探针 Only static objects are considered by Unity's Baked or Precomputed Realtime GI systems. In order for dynamic objects such as interactive scene elements or characters to pick up some of the rich bounced light that our static geometry

Physically Based Shader Development for Unity 2017 Develop Custom Lighting Systems

Part I: Introduction to Shaders In Unity Chapter 1: How Shader Development Works Chapter 2: Your First Unity Shader Chapter 3: The Graphics Pipeline Chapter 4: Transforming Coordinate Spaces Chapter 5: Your First Unity Lighting Shader Chapter 6: Spec

【Unity灯光与渲染技术】Global Illumination全局光照

本系列主要参考Unity灯光与渲染技术教程Unity Lighting And Rendering,同时会加上一点个人实践过程和理解. ========================================== 分割线 ========================================== 这篇文章主要讲全局光照,在看教程的时候就有一个点不是很理解,就是作者开启物体的static这个选项.在网上查找一些资料,有的说"static表示物体时静态的,多用于静止不动的物体,此外

【Unity】12.2 通过Lighting Window设置相关参数

分类:Unity.C#.VS2015 创建日期:2016-05-19 一.简介 Unity 5.3.4的Lighting Window有3个选项卡:Object.Scene.Lightmaps. 二.Object(对象选项卡) 利用该选项卡,可以在场景中选择对象的子集并更改其设置,即选择哪些对象应该参与 GI 计算.这些选项设置将会始终应用于你选择的对象组. 1.All 选项卡的顶部是一组场景筛选按钮,即在层次视图中显示哪些类型 ︰ 灯光,渲染,地形.选择[All]将显示所有类型.如果选择其他按

【Unity Shaders】Lighting Models —— 衣服着色器

本系列主要参考<Unity Shaders and Effects Cookbook>一书(感谢原书作者),同时会加上一点个人理解或拓展. 这里是本书所有的插图.这里是本书所需的代码和资源(当然你也可以从官网下载). ========================================== 分割线 ========================================== 写在前面 布料(Cloth)是另一种非常常见的着色需求,在很多实时游戏中都需要它来实现更真实的交互体

【Unity Shaders】Lighting Models —— 光照模型之Lit Sphere

本系列主要参考<Unity Shaders and Effects Cookbook>一书(感谢原书作者),同时会加上一点个人理解或拓展. 这里是本书所有的插图.这里是本书所需的代码和资源(当然你也可以从官网下载). ========================================== 分割线 ========================================== 写在前面 照亮的球体(Lit Sphere,翻译过来很怪)类型的光照模型是一种非常有趣的基于图像的光

【Unity Shaders】Lighting Models 介绍

本系列主要参考<Unity Shaders and Effects Cookbook>一书(感谢原书作者),同时会加上一点个人理解或拓展. 这里是本书所有的插图.这里是本书所需的代码和资源(当然你也可以从官网下载). ========================================== 分割线 ========================================== 本章介绍 在前面几章中,我们一直在尝试使用Surface Shading中的不同部分来构建Shade

Unity渲染路径 Rendering Paths_1_Deferred Lighting 延时光照

Deferred Lighting 延时光照 延时光照是有着最高保真度的光照和阴影的渲染路径.如果你有很多实时灯光,最好是使用延时光照.它需要一定水平的硬件支持,仅在 Unity Pro可用,移动设备上不支持. 延迟光照是一种当前最高级的能实现光线和阴影保真的渲染路径 对于能影响任何物体的光线数量没有上限 完全采用以每像素的方式评估光线,这等于意味着全部将以正常贴图的方式正确的和物体交互 所有光线都能拥有信息缓存 所有的光线都能产生阴影 延迟光照的优点: 光照的开销与屏幕的光线尺寸成正比,不用担