zoukankan      html  css  js  c++  java
  • 使用RampTexture实现BRDF效果

    使用RampTexture实现BRDF效果

      BRDF stands for bidirectional reflectance distribution function. While that is a mouthful, it simply means the way in which light is reflected off an opaque surface from both the view direction and the light direction

      BRDF指光从view-direction、light-direction2个方向散射出去。

      首先,需要创建一张适用于BRDF的RampTexture。

      

      使用如下Shader来完成模拟:

      

      效果图如下:  

      

    How it works

      The following image shows the dot product of the view direction and the surface normal. 

      

      Since the diffLight calculation and the rimLight calculation both produce a linear range of values from 0 to 1, we can use both the ranges to pick different areas of the ramp texture. 

      

      

      

  • 相关阅读:
    数据库基本概念(一)
    Java语言概述
    Linx
    小菜鸟之Cisco
    小菜鸟之网络基础1
    小菜鸟之JAVA输入输出
    小菜鸟之java JDBC编程
    小菜鸟之JAVA面试题库1
    小菜鸟之java异常
    小菜鸟之正则表达式
  • 原文地址:https://www.cnblogs.com/tekkaman/p/3979032.html
Copyright © 2011-2022 走看看