Now that we have completed our scene setup and created our new script and shader, we can begin to fill in the code necessary to achieve the brightness, saturation, and contrast screen effects. We will be focusing on just the pixel operation and variable setup for our script and shader, since getting a screen effect system up and running is described in the Setting up the screen effects script system recipe in this chapter:
- Create a new shader by duplicating the ScreenGreyscale code by selecting it from the Project tab under the Chapter 9 | Shaders folder and pressing Ctrl + D. Once duplicated, rename the script to ScreenBSC. Then double-click on this shader to open it in your script editor.
- Editing the shader first makes ...