https://github.com/lijieumn/argus-distribution
Tip revision: 866bd38a0b1caa7560e66ecae5e19b65b49558a5 authored by Jie Li on 04 August 2019, 17:48:21 UTC
Merge pull request #4 from AymericFerreira/master
Merge pull request #4 from AymericFerreira/master
Tip revision: 866bd38
shader.vert
#version 330 core
layout(location=0) in vec3 in_position;
layout(location=1) in vec2 in_texcoord;
layout(location=2) in vec3 in_color;
layout(location=3) in vec3 in_normal;
out vec3 vposition;
out vec2 vtexcoord;
out vec3 vcolor;
out vec3 vnormal;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
// gl_PointSize = 1.0;
vposition = in_position;
vtexcoord = in_texcoord;
vcolor = in_color;
vnormal = in_normal;
vec4 pos = projection * model * view * vec4(in_position,1.0);
gl_Position = pos;
}