Simple procedural generation of square points in OpenGl