利用gl_FragCoor做出水波纹效果
来源:互联网 发布:jquery 数组添加对象 编辑:程序博客网 时间:2024/06/03 02:28
water ripper
1. First of all see the mathematic
: height = sin(x) / x; (x != 0)
To X your can treat it as offset from 0 grow with time.
2. 'gl_FragCoor' of GLSL
gl_FragCoor exist in the FragShader as built in variable. Store the
coordinate of current fragement coordinate of viewport. Value is from [0,0.5]
3. Combine 1 and 2, get the height.
4. switch height into texture offset.
Use offset fetch from texture, which will generate the water ripple effect.
启发我的外部链接
上图
0 0
- 利用gl_FragCoor做出水波纹效果
- 点击动画 波纹效果 主要用来做引导动画
- 波纹切换Fragment效果
- 地震波纹效果_SeismiWaveView
- 点击水波纹效果
- 按键为波纹效果
- android实现波纹效果
- android点击波纹效果
- RippleEffect波纹效果
- css3按钮波纹效果
- MD波纹效果
- 实现波纹效果
- design点击波纹效果
- css3波纹效果
- 按钮点击效果(波纹)
- shader波纹效果
- 雷达波纹效果
- 利用shader做玻璃效果
- android短信源码部分解析(双卡)
- 网络攻击——流量劫持
- 为什么要避免使用汉堡包菜单
- Sqoop 2 Metadata design
- metro开发问题记录一:测试包安装出现0x80070005问题
- 利用gl_FragCoor做出水波纹效果
- Linux 2.6 中的直接 I/O 技术
- 蓝牙模块基础功能应用
- linux service命令实现原理
- 收藏 '分享 到百度、微信'功能代码
- udev和sysfs简介
- 【HDU2222】【Keywords Search】AC自动机,有详细注释题解。
- 怎样保存kernel crash dump 文件
- [深入浅出Cocoa]Block编程值得注意的那些事儿