1) Write a shadow mapping shader. It still needs to be decided what type of shadow mapping will be used. Here is a useful tutorial for getting started: http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-16-shadow-mapping/ Read the entire article first (and more articles on the subject), before making any decisions or writing code.
2) Implement a class that handles the shadow shader in ShaderDefaults
1) Write a shadow mapping shader. It still needs to be decided what type of shadow mapping will be used. Here is a useful tutorial for getting started: http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-16-shadow-mapping/ Read the entire article first (and more articles on the subject), before making any decisions or writing code. 2) Implement a class that handles the shadow shader in ShaderDefaults