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

浙公网安备 33010602011771号