使用RampTexture实现BRDF效果
2024-08-27 10:11:12
【使用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.
最新文章
- HTML 事件属性(下)
- 高效快捷解决一个TextView显示多种字体的控件SpannableTextView
- Mat 转 IplImage
- c# 正则表达式 匹配中括号&;颜色过滤
- 如何成功发布一个MSMQ的Windows服务
- oracle的表空间
- 二模 (3) day1
- WebService的原理和过程
- 由于本公司项目需要,现急需拥有微软MCSE证书的人才,一经录用,待遇从优!
- 【转】JSON简介以及用法代码汇总
- 关于jQuery获取checkbox状态的问题
- “盛大游戏杯”第15届上海大学程序设计联赛夏季赛暨上海高校金马五校赛题解&;&;源码【A,水,B,水,C,水,D,快速幂,E,优先队列,F,暴力,G,贪心+排序,H,STL乱搞,I,尼姆博弈,J,差分dp,K,二分+排序,L,矩阵快速幂,M,线段树区间更新+Lazy思想,N,超级快速幂+扩展欧里几德,O,BFS】
- python基础(五)列表,元组,集合
- Java中JSON之全
- npm命令
- HDU - 5755:Gambler Bo (开关问题,%3意义下的高斯消元)
- Play 2D games on Nexus 6P running Android N7.1.1 with Daydream View VR headset
- 「HNOI2016」网络 解题报告
- Java的首次学习和了解
- PL/SQL第四章 where子语句
热门文章
- 2018HN省队集训
- 使用cookie纪录访问次数
- bzoj 1070 [SCOI2007]修车——网络流(拆边)
- Docker安装ShowDoc
- 1.Django入门小Demo
- Spring AOP表达式报错:Pointcut is not well-formed: expecting 'name pattern' at character position
- centos7下安装docker 17.x
- golang的最简单的文件浏览web服务器
- 实现 Win32 程序的消息映射宏(类似 MFC )
- snmpd 子代理模式编译测试