getLineFragmentShader = ({ transparency }) => `
// Color calculated from vertex shader, based on line position
varying vec3 vColor;
// Amount of transparency from vertex shader, based on distance between particles
varying float alpha;

void main() {
  gl_FragColor = vec4( vColor, alpha * ${transparency});
}
`
Applies a color to a connecting line in a particle system