3D cell flow implemenation in opengl