Grid was being recreated each frame, fixed.
gridPoints is now a std::vector of floats.