Make code use similar structures and terms as webgl. Port three.js's

phong shading formulae. Not sure I quite understand them.