Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't store position in gbuffer #1

Open
graphitemaster opened this issue Apr 21, 2017 · 1 comment
Open

Don't store position in gbuffer #1

graphitemaster opened this issue Apr 21, 2017 · 1 comment

Comments

@graphitemaster
Copy link

It's a common technique but if you pass the inverse world-view-projection matrix, you can sample your depth buffer and reconstruct position from it using the matrix. This will save significantly on your gbuffer size and improve performance as well, take a look at my project on here Neothyne to see how I go about that. Otherwise your engine looks nice, keep up the good work ;-)

@JoshuaSenouf
Copy link
Owner

Hey,

Definitely something I should have done since quite a long time indeed, especially after reading the Scalable Ambient Obscurance paper in which position and even normals are obtained using the Depth Buffer.

I am in the middle of finishing a big commit that include diffuse radiance and specular radiance precomputing (not a runtime like at the moment) so I am not sure I can make it a top priority, but I will surely enhance that part, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants