- Kameron Briggs
- May 2, 2019
- 1 min read
I took an equation for brightness, contrast, and saturation and spent the time cutting the instruction count as much as i could. It initially was multiplying 3 4x4 matrices and then multiplying a vector with an added a component. I managed to pump this out and get it working and compiling the very first try. It is very important to cut instruction counts, as they are executed for every vertex, pixel, or etc.
Here is my new function for calculating the matrix to multiply my color with.

Here is what it looks like with some toying around. I get to up my gamma and not lose all of my color.
