您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
524 B

  1. #version 100
  2. precision mediump float;
  3. // Input uniform values
  4. uniform vec4 color;
  5. // NOTE: Add here your custom variables
  6. void main()
  7. {
  8. // Each point is drawn as a screen space square of gl_PointSize size. gl_PointCoord contains where we are inside of
  9. // it. (0, 0) is the top left, (1, 1) the bottom right corner.
  10. // Draw each point as a colored circle with alpha 1.0 in the center and 0.0 at the outer edges.
  11. gl_FragColor = vec4(color.rgb, color.a * (1.0 - length(gl_PointCoord.xy - vec2(0.5))*2.0));
  12. }