Use depth bias for shadows in deferred shading
- by cubrman
We are building a deferred shading engine and we have a problem with shadows.
To add shadows we use two maps: the first one stores the depth of the scene captured by the player's camera and the second one stores the depth of the scene captured by the light's camera. We then ran a shader that analyzes the two maps and outputs the third one with the…