weird bug im not sure

this is just a bit of coursewrk assignment, and im not asking any1 to do it, except to mayb explain this bug im getting.
here is the program:

and heres the code

as u can hopefully c the lighting is screwed in some weird manner. cheers for any insights.


You don’t pass any normals, which are used to calculate lighting.