1 Star 0 Fork 2

码先生/QOpenGL3D

forked from pengrui_2009/QOpenGL3D 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ads_fragment.vert 406 Bytes
一键复制 编辑 原始数据 按行查看 历史
pengrui_2009 提交于 2021-03-08 21:57 +08:00 . Feature:
#version 330 core
layout (location = 0) in vec3 vertexPosition;
layout (location = 1) in vec3 vertexNormal;
uniform mat4 MV;
uniform mat3 N;
uniform mat4 MVP;
out vec3 normal;
out vec3 position;
void main()
{
// Transform to eye coordinates
normal = normalize( N * vertexNormal );
position = vec3( MV * vec4( vertexPosition, 1.0 ) );
gl_Position = MVP * vec4( vertexPosition, 1.0 );
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/agvctrl/qopen-gl3-d.git
git@gitee.com:agvctrl/qopen-gl3-d.git
agvctrl
qopen-gl3-d
QOpenGL3D
main

搜索帮助