field.glsl()The entire field is generated in JS, then exported as a GLSL function with
field.glsl() and pasted straight into a WebGL2 fragment shader. Every pixel below
evaluates the same divergence-free field on the GPU and traces a short streamline through it
(line-integral convolution). The emitter ships more than the velocity: glsl({gradient:true})
also writes mat3 helixNoiseGrad(vec3 p) — the analytic velocity gradient — and
float helixNoiseQ(vec3 p) on top of it, so the tint button switches between helicity
density and the Q-criterion evaluated entirely on the GPU, with no extra uniforms or textures.
No framework — raw WebGL2. Move the sliders to regenerate the shader live.