June 2018
Intermediate to advanced
392 pages
8h 57m
English
In order to make our grayscale screen effect work, we need a script and shader. So, we will complete these two new items here and fill them in with the appropriate code to produce our first screen effect. Our first task is to complete the C# script. This will get the whole system running. After this, we will complete the shader and see the results of our screen effect. Let's complete our script and shader with the following steps:
#region Variablespublic Shader curShader;public float greyscaleAmount = 1.0f;private Material ...