Computes the base color of the current pixel, based on active lights and material properties. Base color is the sum of ambient ...

Computes the base color of the current pixel, based on active lights and material properties. Base color is the sum of ambient color and diffuse lighting contributions under direct lighting. Ambient color approximates the total contribution of indirect lighting, but looks flat and dull without the help of additional lighting. Diffuse lighting helps add shape and depth to an object.