Unity5.5 Lighting Scene
参考:https://docs.unity3d.com/Manual/GlobalIllumination.html
Environment Lighting(环境光)
Skybox:
天空盒材质,这里天空盒材质unity提供3种shader,6面盒子,cubemap,第三种是程序生成的可以通过调整shader参数生成白天黑夜的天空盒
Sun:
里面指定一个Light,如果不知道,就会默认选择场景中最亮的那个,估计是用来参与计算环境光
AmbientSource:
Ambient GI:
这个属性必须后面的PrecomputedRealtime GI和Baked GI同时勾选才会生效,unity默认这两个是同时勾上的
如果只有Baked GI那么环境光一定也是Backed,不需要选择
如果只有Precomputed Realtime GI,环境光也必须是Realtime,也不需要选择
只有两者同时存在才需要选
Realtime:实时,实际上不是完全实时,官网文档解释是Precomputed Realtime
Bake:烘培
出于性能考虑,官网建议根据情况只打开precomputed 或者backe gi中的一项
precomputed 或者backe gi同时打开时,使用哪个取决于light的bake选项
Light的baking除了Realtime和bake还可以设置为mix,设置成mix的光既能bake lightmap,也能实时照亮场景中非静态物体比如给主角产生shadow
Reflection Source:
反射源,可以选择skybox和自定义cubemap
如果是skybox会有两个选项,Resolution:生成贴图分辨率,Compression:是否压缩,这两个参数设置就要早效果和性能权衡下,?有空研究具体怎么测试这里的性能
Reflection Intensity:
反射强度0-1
Reflection Bounces:
反射反弹次数,大体的理解是,场景中有多个object,真实的光照情况下,一个object接受到的光照会来自多个object的反射光,unity中用Reflection probe来模拟这种反射情况
这里的反弹次数大致可以理解为,次数越多,就可以接受到更多次object反弹回的光照,也就越逼真
A reflection “bounce” occurs where a reflection from one object is then reflected by another object. The reflections are captured in the scene through the use of Reflection Probes. This property lets you set how many times the bounces back and forth between
objects are evaluated by the probes; if set to 1 then only the initial reflection (from the skybox or cubemap specified in the Reflection Source property) will be taken into account.
Precomputed Realtime GI
预计算实时全局光照,大体概念可以看下Unity 5 中的全局光照技术详解
如果是非固定视角,光源会发生颜色位置变化等,要想效果真实,并要性能可接受,可以使用这个
只有设置为static的geometry才可以好似用这个技术
如果未开启自动烘培,设置改动后precomputed需要点击build才能生效
Realtime Resolution:
默认 2 texels per unit (unity中一个单位米用每2贴图像素表示)
This sets the number of texels (ie, “texture pixels”) that will be used per unit of length for objects being lit by realtime GI.A
resolution of 1 per unit is usually a good value (depending on the size of the objects in the scene) but for terrains and huge objects you will usually want to scale the resolution down. You can use the Lightmap
Parameters or the Mesh
Renderer’s Scale In Lightmap property
to reduce the resolution. Note that thisproperty also sets the Indirect
Resolution if both Realtime and Baked GI are enabled - see the Baked
GI properties below.
1 texels per unit是比较好的选择, 对于比较大的物体或者terrain,不需要每个单位都产生1 texels,这个通过LightmapPara或者MeshRender里的Scale In Lightmap来调整(在选择1 texels per unit后,个别物体不需要那么高精度贴图时采用的办法)
最后的那个间接分辨率Indirect Resolution没看懂,暂时不知道哪里用,这里indirect Light就是各种反弹出来的间接光,而Indirect Resolution就是Precomputed RealtimeGI贴图的分辨率
CPU Usage:
cpu占用率
CPU usage results in faster reactions from the lighting but may affect framerate, etc. This does not affect the CPU usage for the precomputation process performed
in the editor. Note thathigher CPU usage is achieved by increasing the number of threads assigned to the GI; processors with many cores may therefore
suffer less of a performance hit.
Baked GI:
固定视角可以考虑这个
必须是static物体才可烘培到lightmap,unity5.5里面static后面有个下拉列表,包含了多种static,对于lightmap bake只需要选择lightmap static
Backed Resolution:
官方文档:这个参数通常设置为Precomputed Realtime GI中 RealtimeResolution的数值的10倍以上
unity默认把Precomputed Realtime GI中 RealtimeResolution设置为2 而把 BakedGI中Backed Resolution设置为了40
Backed Padding:
不同shape生成的texels在lightmap中的间距,比如场景中一个plane,上面放一个cube,一个设置为bake的平行光,间距设置为10,烘培完效果
Compressed:
是不是压缩看具体效果吧,默认压缩
Ambient Occlusion
是否backed环境光遮挡,比如用几个plane围出一个角落,这个非封闭角落正常应该接受到更少的环境光
backed时勾选这个角落就会通过计算收到更少的环境光,否则就跟其他位置一样
Final Gather:
When the final gather option is enabled, the final light bounce in the GI calculation will be calculated at the same resolution as the baked lightmap. This improves the
visual quality of the lightmap but at the cost of additional baking time in the editor.
简单说就是更好的效果,更长的baked时间
Atlas Size:
Light Probes:
General GI
Directional Mode:
Indirect Intensity:
Bounce Boost:
Default Parameters:
Fog
Other Settings
Unity5.5 Lighting Scene的更多相关文章
- 窥探Unity5渲染内部之解析UnityShaderVariables.cginc
unity5的UnityShaderVariables.cginc比unity4大了1kb这里装着unity shader 大部分内部参数,写这个方便以后自己查询 Camera参数 uniform f ...
- Unity Lighting - Light Probes 光照探针(十)
Light Probes 光照探针 Only static objects are considered by Unity’s Baked or Precomputed Realtime GI s ...
- Unity Lighting - Light Types 灯光类型(八)
Light Types 灯光类型 We have now covered some of the project settings which need to be considered befo ...
- Unity Lighting - The Precompute Process 预计算过程(二)
The Precompute Process 预计算过程 In Unity, precomputed lighting is calculated in the background - eith ...
- Unity Lighting - Choosing a Lighting Technique 选择照明技术(一)
Choosing a Lighting Technique 选择照明技术 https://unity3d.com/cn/learn/tutorials/topics/graphics/choosi ...
- 【SIKIA计划】_07_Unity3D游戏开发-坦克大战笔记
[新增分类][AudioClips]音频剪辑[AudioMixers]音频混合器[Editor][Fonts]字体[Materials]材质[Models]模型[Standard Assets] [渲 ...
- shader内置变量
内置变量都在UnityShaderVariables.cginc文件中声明 变换矩阵 All these matrices arefloat4x4 type. Name Value UNITY_MAT ...
- UnityError 切换场景灯光变黑问题解决
编辑器在当前场景时,它的灯光是已经渲染好了,但重新加载的时候灯光没有进行渲染 解决方法如下: Window>>lighting>>Scene面板>>右下角build ...
- Unity5 的新旧延迟渲染Deferred Lighting Rendering Path
unity5 的render path ,比4的区别就是使用的新的deferred rendering,之前的4的deferred rendering(其实是light prepass)也被保留了下来 ...
随机推荐
- linux中查看python的安装路径
方法1:whereis python 查看所有python的路径,不止一个 方法2:which python 查看当前使用的python路径
- 开始Shell编程
开始Shell编程 NT:如无特别说明,下面使用bash shell. 编写脚本只需以下几步: (1) 打开编辑器,写下脚本. (2) 给保存的脚本执行权限. 使用chmod permission y ...
- SDUT OJ I样(0-1背包问题 【模板】)
I样 Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 这是个什么问题呢?DP,贪心,数据结构,图论,数论还是计算几何?管他呢,反正 ...
- HDU3811 Permutation —— 状压DP
题目链接:https://vjudge.net/problem/HDU-3811 Permutation Time Limit: 6000/3000 MS (Java/Others) Memor ...
- Spring Boot2.0之性能优化
1.JVM参数调优 针对运行效果 吞吐量 初始堆内存与最大堆尽量相同 减少垃圾回收次数 2.扫包优化: 启动优化 默认Tomcat容器改为Undertow Tomcat的吞吐量500 ...
- promise介绍
promise简介 Promise的出现,原本是为了解决回调地狱的问题.所有人在讲解Promise时,都会以一个ajax请求为例,此处我们也用一个简单的ajax的例子来带大家看一下Promise是如何 ...
- 虚拟参考站(VRS)
来源:https://www.sohu.com/a/149415053_391994 一.高精度定位 VRS是虚拟参考站(Virtual Reference Station)的简称.这项技术是CORS ...
- Composer基础应用1
先唠叨唠叨一些琐碎的事.本人最早从事.Net开发,后来处于好奇慢慢转到了php,因为.net从一早就使用了命名空间(反正从我使用就存在这玩意了),所以在转php时很自然的就使用了命名空间,但是在使用过 ...
- MFC默认窗口类名称
// special AFX window class name mangling #ifndef _UNICODE #define _UNICODE_SUFFIX #else #define _UN ...
- bzoj3456城市规划 多项式取模
題目大意 求出有n个点的有标号简单连通无向图的数目. 题解 什么破玩意,直接输出\(2^{C_n^2}\)走人 我们发现这张图要求连通,而上式肯定不能保证连通. 其实上式表示的是不保证连通的有标号简单 ...