tsumli / vlux

Real-time rendering playground using C++ and Vulkan.
0 stars 0 forks source link

Reconstruct world position from depth in compute shader #36

Open tsumli opened 6 months ago

tsumli commented 6 months ago

Now, we use a render target of position to do lighting. However, the world position can be reconstructed using depth, screen space coordinates, and an inverse of the view-projection matrix.