Need help with lighting my retro style n64 game

Around 5:30 in this video, he explains how he uses shaders to individually light each object in his seen to give off this retro flat lighting effect. I literally have no idea how to do this and have been stumped for a while now, can anyone point me in the right direction? Thankyou