Skip to content

Implement the Phong lighting model

Rahul Sharma requested to merge implement-phong-lighting-model into master

This implements the logic and shader's necessary to use lighting based on the basic Phong method. This method adds in a simple ambient light (which illuminates all objects equally) and then another diffuse based light (which lights based on distance and angle) and finally a specular highlight. This lighting is still in a very early stage and is currently all done through one class, in future MRs I'll expand this lighting class to allow for various lights to be used at once.

This lighting is still very basic and eventually will be expanded to use the Blinn-Phong method in a future MR.

Edited by Rahul Sharma

Merge request reports