码迷,mamicode.com
首页 > 其他好文 > 详细

Half Lambert

时间:2014-09-18 13:03:03      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   ar   strong   2014   div   

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的亮度。

  bubuko.com,布布扣

  可以看到,和普通的Lambert相比,difLight不再clamp到0-1,而是保持(-1)-1,然后乘以0.5+0.5转换到0-1区间。

  通过这种转换,加强了法线的点积值,即加强的光照。

  bubuko.com,布布扣

  The following shows the diffuse value mapped to a function graph, showing the result of the Half Lambert calculation: 

  bubuko.com,布布扣

  

Half Lambert

标签:style   blog   http   color   io   ar   strong   2014   div   

原文地址:http://www.cnblogs.com/tekkaman/p/3978851.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!