Closed SIsilicon closed 3 years ago
By reconstructing the position of the raymarch's hit in world space, and projecting in normalized device coordinates, an accurate depth value can be achieved. Before: After:
Amazing! Thank you so much for fixing this, I could not figure it out :)
Most welcome! I've had my hands on Signed distance fields before, but I never turned into a plugin like you did. Hats off to you. 😄🎩
By reconstructing the position of the raymarch's hit in world space, and projecting in normalized device coordinates, an accurate depth value can be achieved. Before: After: