This shader converts the entire image in the game to black and white, using the formula (R + G + B) / 3 to determine the brightness of each pixel.
The shader converts images in Minecraft to black and white using the average of the colors (R + G + B) / 3. It is applied to the world, but does not change the colors of the interface (GUI). 
Conversation