Phong & BlinnPhong Specular Shader

Phong Specular Shader

  如果物体离摄像机很远,或者不需要高精度镜面反射,则Phong模型适用。

  Phong模型如下:

  

  使用前必须指定使用自定义Phong。

  

BlinnPhong Specular Shader

  前一篇博文中记录了Unity自带的BlinnPhong算法,下面是自定义BlinnPhong模型的算法实现。

  

  

原文地址:https://www.cnblogs.com/tekkaman/p/3980660.html