Little deferred shadows fix.
Unfortunately, this fix doesnt fix all errors and still needs to be improved. However, its a big change and I have to upload it. Yay