使用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.

  

  

  

最新文章

  1. HTML 事件属性(下)
  2. 高效快捷解决一个TextView显示多种字体的控件SpannableTextView
  3. Mat 转 IplImage
  4. c# 正则表达式 匹配中括号&颜色过滤
  5. 如何成功发布一个MSMQ的Windows服务
  6. oracle的表空间
  7. 二模 (3) day1
  8. WebService的原理和过程
  9. 由于本公司项目需要,现急需拥有微软MCSE证书的人才,一经录用,待遇从优!
  10. 【转】JSON简介以及用法代码汇总
  11. 关于jQuery获取checkbox状态的问题
  12. “盛大游戏杯”第15届上海大学程序设计联赛夏季赛暨上海高校金马五校赛题解&&源码【A,水,B,水,C,水,D,快速幂,E,优先队列,F,暴力,G,贪心+排序,H,STL乱搞,I,尼姆博弈,J,差分dp,K,二分+排序,L,矩阵快速幂,M,线段树区间更新+Lazy思想,N,超级快速幂+扩展欧里几德,O,BFS】
  13. python基础(五)列表,元组,集合
  14. Java中JSON之全
  15. npm命令
  16. HDU - 5755:Gambler Bo (开关问题,%3意义下的高斯消元)
  17. Play 2D games on Nexus 6P running Android N7.1.1 with Daydream View VR headset
  18. 「HNOI2016」网络 解题报告
  19. Java的首次学习和了解
  20. PL/SQL第四章 where子语句

热门文章

  1. 2018HN省队集训
  2. 使用cookie纪录访问次数
  3. bzoj 1070 [SCOI2007]修车——网络流(拆边)
  4. Docker安装ShowDoc
  5. 1.Django入门小Demo
  6. Spring AOP表达式报错:Pointcut is not well-formed: expecting 'name pattern' at character position
  7. centos7下安装docker 17.x
  8. golang的最简单的文件浏览web服务器
  9. 实现 Win32 程序的消息映射宏(类似 MFC )
  10. snmpd 子代理模式编译测试