暫無描述

123456789101112131415161718192021222324
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3. #extension GL_ARB_shading_language_420pack : enable
  4. layout (location = 0) in vec2 inPos;
  5. layout (location = 1) in vec4 inGradientPos;
  6. layout (location = 0) out vec4 outColor;
  7. layout (location = 1) out float outGradientPos;
  8. out gl_PerVertex
  9. {
  10. vec4 gl_Position;
  11. float gl_PointSize;
  12. };
  13. void main ()
  14. {
  15. gl_PointSize = 8.0;
  16. outColor = vec4(0.035);
  17. outGradientPos = inGradientPos.x;
  18. gl_Position = vec4(inPos.xy, 1.0, 1.0);
  19. }