Perspective Matrix and Per-pixel lighting

Did I do this right? I have no idea how to use github.
Math.PI