当前位置:网站首页>webgl1.0下texture2D和texture2DProj区别
webgl1.0下texture2D和texture2DProj区别
2022-07-29 05:08:00 【longlongway2012】
结论:
webgl中存在texture2D和texturre2Dproj其区别:
1. texture2D和texture2DProj的区别就是texture2DProj内部会除以coord的最后一个分量;
2. 使用texture2DProj可以不设置纹理的GL_TEXTURE_COMPARE_MODE,从而自己获取深度进行比较;
3. webgl1.0在我的主机上没有设置成功GL_TEXTURE_COMPARE_MODE参数,
是否是webgl1.0不支持还是本地浏览器不支持不清楚?最近学习webgl编程指南中的shadowmap,对其使用texture2D和texture2DProj进行了深入学习同时,也加深了对投影矩阵和其中的齐次坐标系的w分量的理解。具体的一些参考链接如下:
关于W分量的意义可以参考矩阵推导:https://blog.csdn.net/stl112514/article/details/83927643
投影纹理: https://blog.csdn.net/e295166319/article/details/56012831
投影纹理: https://zhuanlan.zhihu.com/p/62096266
shadowmap: https://zhuanlan.zhihu.com/p/61237722
本人学习shadow.js 同时,使用texture2Dproj完成了shadow_texture2DProj的修改测试
边栏推荐
- WPS insert hyperlink cannot be opened. What should I do if I prompt "unable to open the specified file"!
- QT学习:QDropEvent拖拽事件
- sql日志
- Database course design of online assistant teaching platform for high school chemistry
- Rolabelimg to data format data
- Architecture analysis of three-tier project and parameter name injection of construction method
- Young freshmen yearn for more open source | here comes the escape guide from open source to employment!
- 6.3 references
- scikit-learn——机器学习应用开发的步骤和理解
- ARFoundation从零开始3-创建ARFoundation项目
猜你喜欢

On AspectJ framework

Apache POI implements excel import, read data, write data and export
![[untitled]](/img/04/242e85ee8eea5bd6ae8144fc048241.png)
[untitled]

osgSimplegl3结合RenderDoc工具

Scikit learn -- steps and understanding of machine learning application development

Learn the first program of database

Mysql的自连接和联合查询

Mysql把查询到的结果集按指定顺寻进行排序

Open source Huizhi creates the future | the openeuler sub forum of 2022 open atom global open source summit was successfully held

ARFoundation入门教程7-url动态加载图像跟踪库
随机推荐
Mysql语句中的函数
自定义Qml控件:ImageButton
ARFoundation从零开始9-AR锚点(AR Anchor)
AI应用第一课:C语言支付宝刷脸登录
传奇开区网站如何添加流量统计代码
How to make the characters in the photos laugh? HMS core video editing service one click smile function makes people smile more naturally
7.2-function-overloading
基于注解的三层项目的改造及添加包扫描的方式
How does WPS use smart fill to quickly fill data? WPS method of quickly filling data
JS (foreach) return cannot end the function solution
JS (in ES6) sync & await understanding
ARFoundation从零开始3-创建ARFoundation项目
浅谈AspectJ框架
关于thymeleaf的配置与使用
tmux随笔
TCP three handshakes and four waves
开源汇智创未来 | 2022开放原子全球开源峰会 openEuler 分论坛圆满召开
Apache POI实现Excel导入读取数据和写入数据并导出
向往的开源之多YOUNG新生 | 从开源到就业的避坑指南来啦!
Apache POI implements excel import, read data, write data and export