You have a 3D design:
var verticesLines = new Float32Array( [
// four lines
// x y z
-1, -1, 0,
1, -1, 0,
1, -1, 0,
1, 1, 0,
1, 1, 0,
-1, 1, 0,
-1, 1, 0,
-1, -1, 0,
] );
Look what happens:
- Take a fix number for z ( e.g. -3 then +3)
- Add a fix number to all numbers x ( then y)
- Swap the complete columns.
(Possibly you first change the column x with z - and look)
try it