Hello, guys.
This is me again.
In this video, I want to talk about post processing this video exactly from my previous version of
the course, but information is still up to date so we can use it in case it won't be.
Don't worry, I will update the video as soon as possible.
Yeah, that's all what I wanted to say.
Let's enjoy the video together.
This is probably one of the last lectures you're going to see in this course, and it's going to be
post processing.
I'm going to show you some of the tricks you can do to your game to make it look better.
Then we're going to build it and upload it on a play market and rest of the things I'll leave to you.
How to update, how to improve your game, what features to add.
So what we're going to do now is we're going to go to Windows Click Package Manager.
Then make sure you select Unity registry and in the search field you type post.
Here is a post processing.
Click install.
All right, now let's select camera, open it and go to layers.
Add new layer.
We're going to call it post processing.
Now select Cinema Machine and Main Camera and choose Post-Processing.
Now this objects only, and then we're going to select our main camera.
Click Add component type here post.
And first we click Post Process layer.
Choose layer post-processing.
And then add another component post process volume.
Right here we need to make sure you check is global and add new profile later on.
If you want to find your profile is going to be in the scene folder, main scene profiles.
All right.
Now, from this point, it's very easy to experiment ways and find what's working for you.
I'm just going to show you a couple of them and show you what we can do with them, and then I'll leave
it to you.
How to make your game look Better.
All right.
So first we click Add Effect Unity.
And here are all kinds of things you can do.
For example, you can make your game look older like it was on that machines that we use to play.
Like, I'll put photo in here.
So if you.
Increased intensity of chromatic aberration.
I'll a little bit.
You can see how it's changing your game.
Right.
See that.
So it looks differently.
But in my opinion, we don't need this one because it goes for games that are more weird, I would say.
All right, so let's select unity and there is grain, which is also works nice.
There's also gives the impression of the old TV like you playing on the old TV with the game pad or
something like those we had when we were young.
Well, it depends on your age.
Of course, I had those kind of games.
What else?
You can change.
So I like the grain.
You can keep it or not.
It's up to you.
What else you could add is a bloom.
Bloom is very popular.
Many, many games using it.
And you just check all of them.
First mode.
Increase in density.
And you see everything is shiny, but don't put too much of a bloom because, well, pretty simple.
It can hurt your eyes when you play.
Right.
So just a little bit.
To make it look nice and shiny.
Something like.
Now.
Well, it's all about personal preference, right?
Now I see everything is a bit shiny coins and a player
which I feel doesn't hurt, but only makes it better.
All right.
There are some other effects you can add.
Some of them doesn't work with 2D, like ambient occlusion.
It won't work.
But what you could use, for example, you could use wignot.
So how could you use it?
You could.
I'm not sure if I spelled that correctly.
You can make it.
Something like this to.
To make less vision for the player.
Something like that.
Well, smoothness, maybe.
Right.
So now when I play in this mode, it's kind of hard to see what's in front of me.
Like it's a dark night or something.
Has been a bit of horror feeling and it's right.
You could use it for your horror game, like for your next game.
But how could you use it in this game?
For example, you can make a pick up item that player needs to jump over, and if he picks up this item,
everything goes dark and player cannot see when he runs forward, like for some amount of time, right?
And now I'm going to show you how to switch on or switch off this effects, and I'm going to use it
with the example of.
Color grading.
So what I want to do here is I want to find some dark.
I'm.
Color.
Like this.
So when we switch it off, it's fine and switch on.
It's like that.
Right.
Let's switch it off for now.
Create new script and call it post process controller.
Let's close all but.
This.
A new library using unity engine.
Rendering.
Past.
Now we go down here creates create lives field.
Try what?
Forced process.
Volume.
Lost process volume.
In the start.
We type boss process volume equals get component of.
Forced process.
Volume.
All right, now, let's do this first.
Plus process volume.
That profile that try get settings.
Out.
And we need to get access.
To what?
Let's see.
Effect the color grading.
So let's.
Go up here.
And create private color grading and call it color grading.
And let's go back here and type color gradient.
Now I want to create one boolean private bool color gradient off.
Like that and I'll go to update and I'll type if input get key down E, code H and just do this color
gradient of equals to not color grading off and on here, color grading active equals to color grading
of which is boolean.
So it's false or true.
Now when I save this, I go back to Unity.
First, I need to drag my script over here.
I'll hit play.
And when I click the button, you see what's happening.
So I did just input on the key on purpose.
And I'm going to show you what I can do with this, for example, to improve your game and how to implement
that.
I leave it up to you.
All right.
Look.
And there is lots of stuff you can do with the post-processing just within the parameters playing around
to find the best look for a game and not only for this game, but you can use it for different purposes.
Like I said before, horror game or some puzzle game you can create pick up effects and boost effects.
You can make your player drunk with the lens distortion.
Just so many options.
All right.
See in the next video, guys.