当前位置:网站首页>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"!
- How mongodb inserts, deletes and updates documents
- ODOO开发教程之透视表
- Database course design of online assistant teaching platform for high school chemistry
- Activity workflow table structure learning
- TMUX essays
- Arfoundation starts from zero 9-ar anchor
- Youxuan database failed to start and reported network error
- Deadlock analysis using jstack, jconsole, and jvisualvm
- Raspberry pie 4B + Intel neural computing stick (stick2) +yolov5 feasibility study report
猜你喜欢

C语言宏#define命令练习

MySQL sorts the queried result set according to the specified sequence

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

Arfoundation starts from scratch 8-geospatial API (geospatial) development

Solution | get the relevant information about the current employees' highest salary in each department |

01-01-osg GL3 环境搭建

7.3-function-templates

AI应用第一课:C语言支付宝刷脸登录

手写学生管理系统

深度学习刷SOTA的一堆trick
随机推荐
JS (foreach) return cannot end the function solution
WPS insert hyperlink cannot be opened. What should I do if I prompt "unable to open the specified file"!
【2022新生学习】第三周要点
三层项目的架构分析及构造方法的参数名称注入
Arfoundation starts from zero 9-ar anchor
What if the office prompts that the system configuration cannot run?
Create a mindscore environment in modelars, install mindvision, and conduct in-depth learning and training (Huawei)
时间序列分析的表示学习时代来了?
Apache POI implements excel import, read data, write data and export
最新坦克大战2022-全程开发笔记-3
Rolabelimg to data format data
Unity3D - 物体太远看不见的问题
vs2019编译cryengine失败问题处理
Webrtc audio anti weak network technology (Part 2)
开区网站打开自动播放音乐的添加跟修改教程
Young freshmen yearn for more open source | here comes the escape guide from open source to employment!
Google gtest事件机制
Functions in MySQL statements
ARFoundation入门教程7-url动态加载图像跟踪库
roLabelImg转DATO格式数据