* updated glBitmap
[LazOpenGLCore.git] / examples / simple / shader.glsl
diff --git a/examples/simple/shader.glsl b/examples/simple/shader.glsl
new file mode 100644 (file)
index 0000000..5993f08
--- /dev/null
@@ -0,0 +1,19 @@
+/* ShaderObject: GL_VERTEX_SHADER */
+#version 330
+uniform mat4 uModelViewProjMat;
+layout(location = 0) in vec3 inPos;
+void main(void)
+{
+  gl_Position = vec4(inPos, 1.0);
+}
+
+/* ShaderObject: GL_FRAGMENT_SHADER */
+#version 330
+out vec4 outColor; // ausgegebene Farbe
+void main(void)
+{
+  outColor = vec4(1.0, 0.0, 0.0, 1.0);
+}
\ No newline at end of file