In deferred rendering, I first write world position to G-Buffer, and then in shading part, I want to use that information to reproject in the previous frame and then write the final color.
However, the world position buffer wont have any values for fragments that are not touching geometry. How can I recognize these fragments without valid world position info in deferred lighting shader? E.g. I should be displaying environment instead of black parts in world pos buffer.