5993f083898c97a943dbfa8b7cf218de6cbab90f
[LazOpenGLCore.git] / examples / simple / shader.glsl
1 /* ShaderObject: GL_VERTEX_SHADER */
2 #version 330
3 uniform mat4 uModelViewProjMat;
4 layout(location = 0) in vec3 inPos;
5  
6 void main(void)
7 {
8   gl_Position = vec4(inPos, 1.0);
9 }
10
11 /* ShaderObject: GL_FRAGMENT_SHADER */
12 #version 330
13  
14 out vec4 outColor; // ausgegebene Farbe
15  
16 void main(void)
17 {
18   outColor = vec4(1.0, 0.0, 0.0, 1.0);
19 }