Converts an input color to an RGBA grayscale by averaging the RGB. The returned R, G, B, and A channels all have the same value.
Use this shader if you need a grayscale value from RGBA output. This can be useful, for example, if you are creating a bump map with a texture. This shader will let you adjust the color intensity with a single slider.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License