-
Notifications
You must be signed in to change notification settings - Fork 11
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
which space pixelDepth in? #2
Comments
Hi douysu, Thank you for your interest and I'm sorry for the confusion---I didn't have much time to document carefully.
Hope that I answered your questions. Just let me know if you still have anything unclear. |
Thanks for your answer.
|
We need to output the depth value in eye space ( |
ok. thanks |
hi, ttnghia. In file depth-pass.fs.glsl, Best~ |
I can't remember why I used that. Maybe it is a bug---I took it from somewhere else, and maybe mistakenly used it without fixing it. You can try your new formula for computing |
hi, thanks for your code. is good.
First question
I was confused the pixelDepth space in file filter-narrow-range.fs.glsl
Which space is it? I think is clip Space by look the file depth-pass.fs.glsl code
and you limit the pixelDepth range on [-1000, 0], NDC space depth is [-1, 1].
Second question
In file composition-pass.fs.glsl, zn initial value is clip space? The purpose of this formula is convert eyespace to NDC space?
Best.
The text was updated successfully, but these errors were encountered: