Reader small image

You're reading from  Unity 5.x Shaders and Effects Cookbook

Product typeBook
Published inFeb 2016
Reading LevelIntermediate
Publisher
ISBN-139781785285240
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Alan Zucconi
Alan Zucconi
author image
Alan Zucconi

Alan Zucconi is a passionate developer, author, and lecturer, recognized as one of Develop's 30 under 30. His expertise has been built over the past 10 years, working in the intersection between creativity and education. Starting in 2015, he published a series of educational tutorials for other developers and machine learning enthusiasts.
Read more about Alan Zucconi

Right arrow

Setting up the screen effects script system


The process of creating screen effects is one in which we grab a fullscreen image (or texture), use a shader to process its pixels on the GPU, and then send it back to Unity's renderer to apply it to the whole rendered image of the game. This allows us to perform per-pixel operations on the rendered image of the game in real time, giving us a more global artistic control.

Imagine if you had to go through and adjust each material on each object in your game to just adjust the contrast of the final look of your game. While not impossible, this would take a bit of labor to perform. By utilizing a screen effect, we can adjust the screen's final look as a whole, thereby giving us a more Photoshop-like control over our game's final appearance.

In order to get a Screen effect system up and running, we have to set up a single script to act as the courier of the game's current rendered image or, what Unity calls, the Render Texture. By utilizing this script...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Shaders and Effects Cookbook
Published in: Feb 2016Publisher: ISBN-13: 9781785285240

Author (1)

author image
Alan Zucconi

Alan Zucconi is a passionate developer, author, and lecturer, recognized as one of Develop's 30 under 30. His expertise has been built over the past 10 years, working in the intersection between creativity and education. Starting in 2015, he published a series of educational tutorials for other developers and machine learning enthusiasts.
Read more about Alan Zucconi