Draw grid on top of model on each face

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:

  1. Take a fix number for z ( e.g. -3 then +3)
  2. Add a fix number to all numbers x ( then y)
  3. Swap the complete columns.

(Possibly you first change the column x with z - and look)

try it