Modern OpenGL 07 – More Lighting: Ambient, Specular, Attenuation, Gamma
Inthisarticlewewillcontinuetoimplementlighting.WewillimplementtheambientandspecularcomponentsofthePhongreflectionmodel,attenuation,andgammacorrection.AccessingTheCodeDownloadallthecodeasazipfromhere:h