baked lighting

https://docs.unity3d.com/Manual/LightMode-Baked.html

baked lights are light components which have their mode property set to baked.

use baked mode for lights used for local ambience, rather tan fully featured lights. 只对局部的某些灯进行烘焙,而不是全部都是烘焙灯。unity pre-calculates the illumination from these lights before run time, and does not include them in any run-time lighting calculations. this means that there is no run-time overhead 开销 for baked lights.

unity baked direct and indirect lighting from baked lights into light maps (to illuminate static GameObjects) and Light Probes 把baked 灯烘焙为光照贴图或者是光探针. baked lights can not emit specular lighting, even on dynamic GameObjects . baked lights do not change in response to actions taken by the player, or events which take place in the Scene. they are mainly useful for increasing brightness in dark areas without needing to adjust all of the lighting within a Scene.

baked lights are also the only Light type for which dynamic GameObjects can not cast shadows on other dynamic GameObjects.

advantages of baked lighting

high-quality shadows from statics GameObjects on statics GameObjects in the light map at no additional cost.

offers indirect lighting.

all lighting for static GameObjects can be just one Texture fetched from the light map in the Shader.

disadvantages of baked lighting

no real-time direct lighting (that is, no specular effects).
no shadows from dynamic GameObjects on static GameObjects.
u only get low-resolution shadows from static GameObjects on dynamic GameObjects using Light Probes.

increased memory requirements compared to real-time lighting for the light map texture set, because light maps need to be more detailed to contain direct lighting information.

techniques details
for baked lights, unity pre-computes the entire light path, except for the path segment from the Camera to the surface. see documentation on Light Modes for more information about light paths.

unity also precomputes direct baked lighting, which means that light direction information is not available to unity at runtime. instead, a small number of Texture operations handle all light calculations for baked lights in the Scene area. without this information, unity can not carry out calculations for specular and glossy reflections. if u need specular reflections, use reflection probes or use mixed or realtime lights. see documentation on directional light maps for more information.

baked lights never illuminate dynamic gameobjects at runtime. the only way for dynamic game objects to receive light from baked lights is via light probes. this is also the only difference between baked lights and any subtractive mode mixed lights.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值