1 Star 1 Fork 0

Bruce / OpenGL_CV

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vertex_shader.glsl 218 Bytes
一键复制 编辑 原始数据 按行查看 历史
Bruce 提交于 2024-01-09 00:31 . OpenGL使用着色器
#version 330 core
layout (location = 0) in vec2 position;
out vec2 TexCoord;
void main()
{
gl_Position = vec4(position, 0.0, 1.0);
TexCoord = (position + 1.0) / 2.0; // 将顶点坐标转换为纹理坐标
}
1
https://gitee.com/54993306/open-gl_-cv.git
git@gitee.com:54993306/open-gl_-cv.git
54993306
open-gl_-cv
OpenGL_CV
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891