Perlin / Simplex Noise (plasma effect)

I was checking his code… fascinating…

var F2 = 0.5 * (Math.sqrt(3.0) - 1.0);
var G2 = (3.0 - Math.sqrt(3.0)) / 6.0;
var F3 = 1.0 / 3.0;
var G3 = 1.0 / 6.0;
var F4 = (Math.sqrt(5.0) - 1.0) / 4.0;
var G4 = (5.0 - Math.sqrt(5.0)) / 20.0;

which might make sense for readability of what he is doing… but those can all be simplified and should offer a little speedup… though they only seem to be executed once.