In this lesson, we're going to take a look at the lighting mobility.
OK, so here we are back in the project, and I just want to explain to you the mobility of the lighting
and now you're thinking what is mobility and mobility is actually this one over here.
And this is very important that you know that.
So now we have made our lighting and every lighting that you click at.
If I go and sort of lining here, if you click at any lighting, you can see that it has some sort of
mobility here.
And what mobility is, if you put a light to static, this will save you the performance.
So the movable has the heaviest performance and the static has the best performance.
So best performance you have to set out to study, but the problem is static is just like the name says
it static light.
So if you have a character running around, let's say you have this sunlight set of static and you have
a character running around inside of the environment, the shadows of this character will not display.
And this is because static lights will create the shadow.
So it will already have baked shadows, saved it in the memory of the computer, and that is it.
The shadow is static.
It's not going to move at all in the game.
So, for example, if you have a lamp, a straight line, and you want to cast shadows from the character
when they run under it, you don't need to set it to static because static lights will pre-bid all the
shadows.
So, for example, you have some items that the character will never go close to or nothing is going
to move in that area, then you will want to set it to static.
Stationary is what you want to set it to if you want the shadows to display.
So, for example, I would set my lamp, my street lamp to a stationary light because when the character
runs under it, it will display the dynamic shadows that from the character.
So every everything that is dynamic inside of the game and you want to display the shadows of this dynamic
item or dynamic character or whatever is moving.
You want to put it to stationary?
So what is movable then movable is when you want to move the actual light inside of the game, so movable
will also display the shadows for your character, for example, dynamic items.
But the difference between the stationary and movable is that movable lights you can actually move during
the game.
So, for example, if you have a sunlight, so the sun, there is a sunset and sunrise, the sun is
going to move and then you have to set the lighting to movable or else you are not able to move the
light inside of the game.
So if you want to move the actual light, you have to click on unmoveable, else you can't really move
it inside of the game.
But you if you only wanted the light in one spot and it should display shadows from dynamic items,
for example, the character, then you have to set it to stationary, then you don't really need to
set it to movable if you're not going to move that actual light.
So remember, movable is is the heaviest one on performance.
So whenever you can, you need to set the light to static.
This is the best thing you can do.
But there are times, for example, a lamp post on the street, you have to set it to stationary because
else it's not going to show the character of shadows if this is what you wish to do and if you have
a sunrise, so a day and night system in the game, you have to set it to movable or else you can't
really move the sun during the game.