()
| 43 | } |
| 44 | |
| 45 | function initDrawProgram() { |
| 46 | if (drawProgram) drawProgram.unload(); |
| 47 | |
| 48 | const drawGraph = new DrawParticleGraph(ctx); |
| 49 | const vertexShaderCode = drawGraph.getVertexShader(currentVectorField); |
| 50 | drawProgram = util.createProgram(gl, vertexShaderCode, drawGraph.getFragmentShader()); |
| 51 | } |
| 52 | |
| 53 | function updateParticlesPositions() { |
| 54 | if (!currentVectorField) return; |
no test coverage detected