当前位置:网站首页>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>
边栏推荐
- 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
- How polardb-x does distributed database hotspot analysis
- #DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
- 【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
- Debugging and handling the problem of jamming for about 30s during SSH login
- Build your own website (18)
- L2:ZK-Rollup的现状,前景和痛点
- 嵌入式开发:如何为项目选择合适的RTOS?
- Codemail auto collation code of visual studio plug-in
- Goal: do not exclude yaml syntax. Try to get started quickly
猜你喜欢

强化学习-学习笔记9 | Multi-Step-TD-Target

Overseas agent recommendation

Customer case | China law network, through observing the cloud, greatly shortens the time of fault location

2022 how to evaluate and select low code development platforms?

L2: current situation, prospects and pain points of ZK Rollup

Pre sale 179000, hengchi 5 can fire? Product power online depends on how it is sold
Latest Android advanced interview questions summary, Android interview questions and answers

ByteDance senior engineer interview, easy to get started, fluent

如何选择合适的自动化测试工具?

Solve the problem of uni in uni app Request sent a post request without response.
随机推荐
[open source] Net ORM accessing Firebird database
如何选择合适的自动化测试工具?
Debugging and handling the problem of jamming for about 30s during SSH login
How much does it cost to develop a small program mall?
MIT6.S081-Lab9 FS [2021Fall]
谈谈制造企业如何制定敏捷的数字化转型策略
Magic weapon - sensitive file discovery tool
Goal: do not exclude yaml syntax. Try to get started quickly
2022 how to evaluate and select low code development platforms?
【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
Jerry's fast pairing does not support canceling pairing [article]
Jerry's test box configuration channel [chapter]
PDF文档签名指南
Ant destination multiple selection
Time standard library
Main functions of OS, Sys and random Standard Libraries
用语雀写文章了,功能真心强大!
How does win11 unblock the keyboard? Method of unlocking keyboard in win11
ByteDance Android interview, summary of knowledge points + analysis of interview questions
How to integrate Google APIs with Google's application system (1) -introduction to Google APIs