2 For simplicity, this pseudocode does not properly weight the texels in the input environment map (to account for the sampling rate differences across environment maps). The example code included on the book’s CD properly handles this.