AndreasFSC
Too much going on...
In Race 07 at least the shadows are "added" as a black collor with different amount of alpha until the directional light hits the min angle. But it doesn't decrease gradually as far as I have seen, so at sunset they can look too dark.
Idealy I would just remove directional light if a pixel is in shadow, but until I can (hopefully) do that I calculate the added "blackness" or alpha of the shadow from the amount of directional light.
So it is kind of inversed to get a more gradual decrease when sun goes down. I think that is the best way right now, until there is a better way of course.
Idealy I would just remove directional light if a pixel is in shadow, but until I can (hopefully) do that I calculate the added "blackness" or alpha of the shadow from the amount of directional light.
So it is kind of inversed to get a more gradual decrease when sun goes down. I think that is the best way right now, until there is a better way of course.