I am doing a very basic GreyScale shader, and wanted to add some Contrast and Brightness.
I would like to know the Syntaxes I have to use to figure out this:
The formulas I found/use some great dutch tutorial about photoshop filters. Here they use the Maxium value (per color) and Minimum value (per Color) to calculate the middle off the color spectrum. (for red: R_Max + R_min / 2 )
Also another tutorial I found uses the Mean value (avarage) off the colors.
I am using this Microsoft Page as a guideline for the syntaxes (or is it called functions?), if any one knows a better one, please share!
Thnx for helping me, realy want to understand this.