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.
 
 
 

36 regels
407 B

  1. /*
  2. * Awesome triangle shader
  3. */
  4. technique FlatColor
  5. {
  6. pass DefaultPass
  7. {
  8. vertexshader = vert;
  9. pixelshader = frag;
  10. }
  11. }
  12. [vert.glsl]
  13. #version 130
  14. in vec2 in_position;
  15. void main(void)
  16. {
  17. gl_Position = vec4(in_position, 0.0, 1.0);
  18. }
  19. [frag.glsl]
  20. #version 130
  21. #if defined GL_ES
  22. precision highp float;
  23. #endif
  24. void main(void)
  25. {
  26. gl_FragColor = vec4(0.7, 0.2, 0.5, 1.0);
  27. }