Renderer2D.vsh 382 B

123456789101112131415161718192021222324
  1. #version 100
  2. /* Attributes */
  3. attribute vec4 inVertexPosition;
  4. attribute vec4 inVertexColor;
  5. attribute vec2 inTexCoord0;
  6. /* Uniforms */
  7. uniform float uThickness;
  8. /* Varyings */
  9. varying vec2 vTextureCoord;
  10. varying vec4 vVertexColor;
  11. void main()
  12. {
  13. gl_Position = inVertexPosition;
  14. gl_PointSize = uThickness;
  15. vTextureCoord = inTexCoord0;
  16. vVertexColor = inVertexColor.bgra;
  17. }