In Chapter 14 we used an
to specify a color for reflecting rays that left the scene without striking any other objects. Environment shaders simply return a color, but in this chapter we will also provide optional
functions that will assist in the environment shader’s calculations. These optional shader functions can be defined for any shader type.