hw3: get textures working
hw3: fix bug in fragment shader causing the view direction to be wrong sometimes