123456789101112131415161718 |
- #version 430
- layout (location = 0) in vec3 position;
- layout (location = 1) in vec2 tex;
- layout (location = 2) in vec4 color;
- uniform mat4 proj;
- uniform mat4 view;
- uniform mat4 model;
- out vec4 varColor;
- out vec2 varTex;
- void main(void) {
- varColor = color;
- varTex = tex;
- gl_Position = proj * view * model * vec4(position, 1.0);
- }
|