当前位置:网站首页>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>
边栏推荐
- The new version of onespin 360 DV has been released, refreshing the experience of FPGA formal verification function
- Demon daddy A1 speech listening initial challenge
- DBSync新增对MongoDB、ES的支持
- 【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)
- Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]
- Tcp/ip protocol stack
- Goal: do not exclude yaml syntax. Try to get started quickly
- Reinforcement learning - learning notes 9 | multi step TD target
- 【JDBC Part 1】概述、获取连接、CRUD
- 用语雀写文章了,功能真心强大!
猜你喜欢
How to make agile digital transformation strategy for manufacturing enterprises
What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk
Jerry's about TWS channel configuration [chapter]
如何实现横版游戏中角色的移动控制
Ternary expressions, generative expressions, anonymous functions
Embedded development: how to choose the right RTOS for the project?
Index summary (assault version)
Latest Android advanced interview questions summary, Android interview questions and answers
Paint basic graphics with custompaint
Debugging and handling the problem of jamming for about 30s during SSH login
随机推荐
Magic weapon - sensitive file discovery tool
Use br to recover backup data on azure blob storage
The little money made by the program ape is a P!
嵌入式开发:如何为项目选择合适的RTOS?
PKPM 2020软件安装包下载及安装教程
Kirin Xin'an operating system derivative solution | storage multipath management system, effectively improving the reliability of data transmission
Jerry's test box configuration channel [chapter]
Prometheus remote_ write InfluxDB,unable to parse authentication credentials,authorization failed
Relationship between URL and URI
How does win11 time display the day of the week? How does win11 display the day of the week today?
Jerry's about TWS channel configuration [chapter]
How polardb-x does distributed database hotspot analysis
Win11如何解禁键盘?Win11解禁键盘的方法
Google SEO external chain backlinks research tool recommendation
NVR硬盘录像机通过国标GB28181协议接入EasyCVR,设备通道信息不显示是什么原因?
[open source] Net ORM accessing Firebird database
Demon daddy B2 breaks through grammar and completes orthodox oral practice
Reinforcement learning - learning notes 9 | multi step TD target
Which financial products will yield high returns in 2022?
The latest Android interview collection, Android video extraction audio