Tekkaman

导航

 

Fresnel Reflection

  One of the most used types of reflections is the Fresnel reflection. One of the most used surfaces of this type of effect is the body of a car. 

  Fresnel Reflection有点像RimLight。在Shader实现上,也是借鉴了RimLight的算法来扰动Emission颜色。

  为了实现Shader,我们需要一个Cubemap,及Specular、Rim的相关强度信息,如下:

  

  另外,引用需要用到的内置变量:

  

  最后实现代码如下:

  

  最终效果图:

  

How it works

  左边2图展示RimLight效果,右边2图展示Cubemap+Rimlight效果。

  

  

  

posted on 2014-09-19 17:14  Tekkaman  阅读(1726)  评论(0编辑  收藏  举报