 Mat4 = require 'gl-matrix-mat4'
 Teapot = require 'teapot'
 
-WIREFRAME = location.hash.split('#')[1] == 'wireframe'
+POINTS = location.search == '?points'
+WIREFRAME = location.search == '?wireframe'
+SOLID = location.search == '?solid'
+AHHHHH = location.search == '?AHHHHH'
 
 # http://blogs.msdn.com/b/davrous/archive/2013/06/13/tutorial-series-learning-how-to-write-a-3d-soft-engine-from-scratch-in-c-typescript-or-javascript.aspx
 

          @drawBLine(projectedC.screen, projectedA.screen)
      else
        for face, faceIndex in mesh.faces
          vertexA = mesh.vertices[face[0]]
          vertexB = mesh.vertices[face[1]]
          vertexC = mesh.vertices[face[2]]
          normal = mesh.normals[faceIndex]

          projectedA = @project(vertexA, transformMatrix, worldMatrix, normal)
          projectedB = @project(vertexB, transformMatrix, worldMatrix, normal)

  [ 4, 5, 6 ]
  [ 4, 6, 7 ]
]
# cubeMesh.computeNormals()
# meshes.push cubeMesh

mesh = new Mesh('Teapot')
