当前位置:网站首页>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的修改测试
边栏推荐
- 浅谈AspectJ框架
- Youxuan database failed to start and reported network error
- QT学习:使用JSON/XML等非ts文件实现多语言国际化
- Legend how to configure multiple versions of wechat updates on one server
- 开源汇智创未来 | 2022开放原子全球开源峰会 openEuler 分论坛圆满召开
- 传奇如何一台服务器配置多个版本微端更新
- How to solve the problem of configuring the progress every time Office2010 is opened?
- Visual Basic .Net 如何获取命令参数
- Jackson parsing JSON detailed tutorial
- ARFoundation入门教程10-平面检测和放置
猜你喜欢
Getting started with arfoundation tutorial 10- plane detection and placement
Activity workflow table structure learning
Do you remember the process analysis and function implementation of post notification?
[2022 freshmen learning] key points of the third week
学习数据库的第一个程序
Diagram of odoo development tutorial
[from_bilibili_DR_CAN][【Advanced控制理论】9_状态观测器设计][学习记录]
This article takes you to understand the implementation of surround notification @around and final notification @after
TCP三次握手四次挥手
The representation of time series analysis: is the era of learning coming?
随机推荐
6.3 references
How does excel filter out the content you want? Excel table filtering content tutorial
[sudden] solve remote: support for password authentication was removed on August 13, 2021. please use a perso
最新坦克大战2022-全程开发笔记-3
玩家访问网站自动弹窗加QQ群方法以及详细代码
"Invisible Bridge" built in the free trade economy: domestic products and Chinese AI power
Raspberry pie 4B + Intel neural computing stick (stick2) +yolov5 feasibility study report
Getting started with solidity
那个准时上下班,从不愿意加班加点的人,在我前面升职了...
How to install Office2010 installation package? How to install Office2010 installation package on computer
ARFoundation入门教程10-平面检测和放置
Mysql语句中的函数
tmux随笔
最新坦克大战2022-全程开发笔记-1
ODOO开发教程之透视表
C how to realize simple factory mode
Google GTEST event mechanism
roLabelImg转DATO格式数据
Deep learning brush a bunch of tricks of SOTA
Legend how to configure multiple versions of wechat updates on one server