Dengine/data/shaders/default.vert.glsl

20 lines
363 B
Plaintext
Raw Normal View History

2016-06-03 05:07:40 +00:00
#version 330 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec3 color;
layout (location = 2) in vec2 texCoord;
out vec3 OurColor;
out vec2 TexCoord;
2016-06-03 07:05:28 +00:00
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
2016-06-03 05:07:40 +00:00
void main()
{
2016-06-03 07:05:28 +00:00
gl_Position = projection * view * model * vec4(position, 1.0f);
2016-06-03 05:07:40 +00:00
OurColor = color;
TexCoord = texCoord;
}