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.

123456789101112131415161718192021222324252627282930313233343536
  1. -- GLSL.Vert --
  2. #version 120
  3. void main()
  4. {
  5. gl_Position = gl_Vertex;
  6. gl_TexCoord[0] = gl_MultiTexCoord0;
  7. }
  8. -- GLSL.Frag --
  9. #version 120
  10. uniform sampler2D texture;
  11. void main(void)
  12. {
  13. gl_FragColor = vec4(texture2D(texture, gl_TexCoord[0].xy).xyz, 1.0);
  14. }
  15. -- HLSL.Vert --
  16. void main(float2 in_Position : POSITION,
  17. out float4 out_Position : POSITION)
  18. {
  19. out_Position = float4(in_Position, 0.0, 1.0);
  20. }
  21. -- HLSL.Frag --
  22. void main(out float4 out_FragColor : COLOR)
  23. {
  24. out_FragColor = float4(0.7, 0.2, 0.5, 1.0);
  25. }