Implemented various image effects using fragment shader.
Image Negative: The formula is very simple just deduct the rgb values
of image from 1 i.e. 1 - rgb is the new color of the image.
2. Grey Scale: Greyscale image
is an image in which the value of each pixel contains only the
intensity of color at that pixel. Hence, the formula to calculate
vec3 W = vec3 (0.2125, 0.7154, 0.0721);
float luminance = dot(rgb, W);
Then, just set the luminance value to be the rgb value for the pixel.
3. Gaussian Blur: It is used to reduce image noise and details.
5. Toon Shader:
Night Vision: It is simple. First calculate the noise and then multiply
that noise with the green color. Set the newly calculated value to be
the value of the pixel color.
9. Brightness: As I understand brightness is just adding the light to the pixel.