You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
329 B

  1. /* ShaderObject: GL_VERTEX_SHADER */
  2. #version 330
  3. uniform mat4 uModelViewProjMat;
  4. layout(location = 0) in vec3 inPos;
  5. void main(void)
  6. {
  7. gl_Position = vec4(inPos, 1.0);
  8. }
  9. /* ShaderObject: GL_FRAGMENT_SHADER */
  10. #version 330
  11. out vec4 outColor; // ausgegebene Farbe
  12. void main(void)
  13. {
  14. outColor = vec4(1.0, 0.0, 0.0, 1.0);
  15. }