Desaturation (monochrome) filter.
Original unprocessed scene is shown at the end of my post on god rays with cartoon shading: [Sample program] God rays with cartoon-shaded objects
Luma is computed using the perceptual weightings from ITU-R Rec. 709 (colloquially HDTV).