当前位置:网站首页>OpenGL job coordinate system
OpenGL job coordinate system
2022-07-07 22:08:00 【qq_ fifty-seven million two hundred and fifty-one thousand thre】
One 、 Using the model matrix only makes 3 Multiple box rotation ( And the first 1 A box ), And keep the rest of the box still
#version 330 core
layout (location = 0) in vec3 aPos;layout (location = 2) in vec2 aTexCoord;
out vec2 TexCoord;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = projection*view*model*vec4(aPos, 1.0);
TexCoord = aTexCoord;
}
#version 330 core
out vec4 FragColor;
in vec2 TexCoord;uniform sampler2D texture1;
uniform sampler2D texture2;uniform float Nongdu;
void main()
{
FragColor = mix(texture(texture1, TexCoord), texture(texture2, vec2(1-TexCoord.x, TexCoord.y)), Nongdu);
}
#include<iostream>
#define GLEW_STATIC
#include <GL/glew.h>
边栏推荐
- Google SEO external chain backlinks research tool recommendation
- Record a garbled code during servlet learning
- Latest Android advanced interview questions summary, Android interview questions and answers
- [open source] Net ORM accessing Firebird database
- Use camunda to do workflow design and reject operations
- Matplotlib drawing interface settings
- L2:ZK-Rollup的现状,前景和痛点
- [colmap] sparse reconstruction is converted to mvsnet format input
- Ant destination multiple selection
- Validutil, "Rethinking the setting of semi supervised learning on graphs"
猜你喜欢
[开源] .Net ORM 访问 Firebird 数据库
Reptile combat (VII): pictures of the king of reptiles' heroes
QT compile IOT management platform 39 alarm linkage
如何选择合适的自动化测试工具?
PDF文档签名指南
你可曾迷茫?曾经的测试/开发程序员,懵懂的小菜C鸟升级......
Dry goods sharing | devaxpress v22.1 original help document download collection
强化学习-学习笔记9 | Multi-Step-TD-Target
Validutil, "Rethinking the setting of semi supervised learning on graphs"
South China x99 platform chicken blood tutorial
随机推荐
Jenkins user rights management
null == undefined
Google SEO external chain backlinks research tool recommendation
Have you ever been confused? Once a test / development programmer, ignorant gadget C bird upgrade
cv2.resize函数报错:error: (-215:Assertion failed) func != 0 in function ‘cv::hal::resize‘
The whole network "chases" Zhong Xuegao
The strongest installation of the twin tower model, Google is playing "antique" again?
23. Merge K ascending linked lists -c language
How to make agile digital transformation strategy for manufacturing enterprises
为什么Win11不能显示秒数?Win11时间不显示秒怎么解决?
PDF文档签名指南
强化学习-学习笔记9 | Multi-Step-TD-Target
Codemail auto collation code of visual studio plug-in
Two kinds of updates lost and Solutions
使用 BlocConsumer 同时构建响应式组件和监听状态
Why can't win11 display seconds? How to solve the problem that win11 time does not display seconds?
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
如何实现横版游戏中角色的移动控制
Static test tool
An overview of the latest research progress of "efficient deep segmentation of labels" at Shanghai Jiaotong University, which comprehensively expounds the deep segmentation methods of unsupervised, ro