In the previous chapter, we discussed how to apply transformations and projections to objects. We also created multiple cubes and a Camera class to clearly view and navigate around those objects. In this chapter, we're going to look at lighting. Firstly, we're going to discuss the basics of colors with respect to our objects and the source of light. We'll also discuss creating a vertex shader and a fragment shader, like we had in the previous chapters for our object box. We'll be creating a shader for an actual light source such as a lamp. You'll also learn how to apply materials to your object cube and you will observe the effect light has on those materials.
In this chapter we'll cover the following topics:
- The basics of colors in lighting and lighting effects on objects
- Effect of light on a type...