Handle zero-length vectors when normalizing
Correct ambient light
Fix vertex shader compilation
Merge pull request #1324 from cinaera/pullreq

Handle zero-length vectors when normalizing and fix ambient light