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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=0.8">
  7. <!-- <link rel="icon" href="./zyic.ico"> -->
  8. <title>中农融信</title>
  9. </head>
  10. <body>
  11. <noscript>
  12. <strong>We're sorry but mine doesn't work properly without JavaScript enabled. Please enable it to
  13. continue.</strong>
  14. </noscript>
  15. <div id="app"></div>
  16. <script>
  17. </script>
  18. <script id="vertexShader" type="x-shader/x-vertex">
  19. varying vec2 vUv;
  20. attribute float percent;
  21. uniform float u_time;
  22. uniform float number;
  23. uniform float speed;
  24. uniform float length;
  25. varying float opacity;
  26. uniform float size;
  27. void main()
  28. {
  29. vUv = uv;
  30. vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
  31. float l = clamp(1.0-length,0.0,1.0);
  32. gl_PointSize = clamp(fract(percent*number + l - u_time*number*speed)-l ,0.0,1.) * size * (1./length);
  33. opacity = gl_PointSize/size;
  34. gl_Position = projectionMatrix * mvPosition;
  35. }
  36. </script>
  37. <!-- fragment shader a.k.a. pixel shader -->
  38. <script id="fragmentShader" type="x-shader/x-vertex">
  39. #ifdef GL_ES
  40. precision mediump float;
  41. #endif
  42. varying float opacity;
  43. uniform vec3 color;
  44. void main(){
  45. if(opacity <=0.2){
  46. discard;
  47. }
  48. gl_FragColor = vec4(color,1.0);
  49. }
  50. </script>
  51. <!-- built files will be auto injected -->
  52. </body>
  53. </html>