zoukankan      html  css  js  c++  java
  • Fresnel Reflection Shader

    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效果。

      

      

      

  • 相关阅读:
    day44
    day38
    day37
    day36
    作业35
    day35
    作业34
    day34
    day33
    Windows API 第三篇
  • 原文地址:https://www.cnblogs.com/tekkaman/p/3981908.html
Copyright © 2011-2022 走看看