首页 > 代码库 > Half Lambert
Half Lambert
【Half Lambert】
Half Lambert was a technique created by Valve as a way of getting the lighting to show the surface of an object in low-light areas. It basically brightens up the diffuse lighting of the Material and wraps the diffuse light around an object‘s surface.
Half Lambert用于在低光照环境下让物体显得更亮的算法。该算法提高了diffuse的亮度。
可以看到,和普通的Lambert相比,difLight不再clamp到0-1,而是保持(-1)-1,然后乘以0.5+0.5转换到0-1区间。
通过这种转换,加强了法线的点积值,即加强的光照。
The following shows the diffuse value mapped to a function graph, showing the result of the Half Lambert calculation:
Half Lambert
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。