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 lines
498 B

  1. -- GLSL.Vert --
  2. #version 120
  3. attribute vec2 in_Position;
  4. void main(void)
  5. {
  6. gl_Position = vec4(in_Position, 0.0, 1.0);
  7. }
  8. -- GLSL.Frag --
  9. #version 120
  10. void main(void)
  11. {
  12. gl_FragColor = vec4(0.7, 0.2, 0.5, 1.0);
  13. }
  14. -- HLSL.Vert --
  15. void main(float2 in_Position : POSITION,
  16. out float4 out_Position : POSITION)
  17. {
  18. out_Position = float4(in_Position, 0.0, 1.0);
  19. }
  20. -- HLSL.Frag --
  21. void main(out float4 out_FragColor : COLOR)
  22. {
  23. out_FragColor = float4(0.7, 0.2, 0.5, 1.0);
  24. }