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)也被保留了下来 ...
随机推荐
- react-navigation遇到的坑
关于goBack返回指定页面 react-navigation是提供了goBack()到指定页面的方法的,那就是在goBack()中添加一个参数,但当你使用goBack('Main')的时候,你会发现 ...
- ThreadLocalMap里Entry声明为WeakReference
Java里,每个线程都有自己的ThreadLocalMap,里边存着自己私有的对象.Map的Entry里,key为ThreadLocal对象,value即为私有对象T.在spring MVC中,常用T ...
- 如何查看apache配置文件路径
我是用https://lamp.sh/安装的,apache配置文件位置在:/usr/local/apache/conf/httpd.conf如果是直接安装的apache,配置文件应该在:/etc/ht ...
- 设置ubuntu默认输入python进入python3
执行下面两条命令 sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update- ...
- [2018-11-03]2018年10月28日宁波dotnet社区活动回顾及下次活动预告
离上次活动,有半年了,汗.之后尽量保证每月一次,以组织为主,多邀请嘉宾来分享. 本次活动不足之处 人手不足:由于活动组织事项受限于人手(目前就我一个,这次活动前后我又应邀给大红鹰学院应届生介绍dotn ...
- <JAVA图像学习笔记>十字路口交通模拟--操作系统模拟课后小项目
项目的要求很简单: 模拟出十字路口的交通控制情况: 秒. 当东西(或南北)方向红灯时,所有车辆(除了消防车.救护车.警车)均排队等待,当东西(或南北)方向绿灯时,所有车辆按序行驶(不准超车). 制作这 ...
- vs2010 windows service 项目不能引用类库项目
在一个windows 服务项目A中,引用了另外一个项目B,可以使用自动完成,引用其他项目中的类,按理,可以自动提示了,应该就是没问题了,但编译时却提示"未能找到类型或命名空间名称" ...
- linux 进程学习笔记-信号semaphore
信号灯(信号量)不是进程通信手段,其是用于控制和协调在进程间通信过程中的共享资源访问,就如同互斥锁(两者的区别可以参考这里) 可以将简单地将信号灯想象成一个计数器,初始时计数器值为n(有n个资源可供使 ...
- APIO2018爆零记
Day1 集合 7点和yyc他们在学校简单的集合了一下 在大通道看到了整个年级来上操 嘲讽了一番就大摇大摆的走出了校门 校门口看无迟到周的权益部长lzj同学满眼的羡慕 2333 然后到了裕龙酒店登记入 ...
- /boot下面文件说明
config-3.10.0-229.el7.x86_64 <==此版本核心被编译时选择的功能与模组设定档 grub/ <==旧版 grub1 ,不需要理会这目录了! grub2/ < ...