-
Notifications
You must be signed in to change notification settings - Fork 2
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
Completely wrong #1
Comments
If you want to send a PR, go for it. |
I'm currently writing my own Oren-Nayar code. I'll probably upload it to another repository since I don't like/need all the JS around this shader. However, I searched around this topic (Oren-Nayar) and I only found:
I can comment here my current version, which works. However, I'm not sure about its correctness. |
There isn't any JS code in the repo, just GLSL. If you want to to fix it up just go for it. |
@dv343 Apparently the shader was implemented according to the instructions found on this post. The A and B first mentioned in this post are not the same as the ones used in the "qualitative" model, as the author has apparently calculated them from the full model instead. Unfortunately, the author doesn't give the detail of his calculations. The only incorrect thing I can see here is in the documentation: sigma (the |
I'm sorry but the code has multiple bugs, it doesn't match the Oren Nayar formula
I guess that this is un-maintained code, but the fact that this is the first Google result of "oren nayar glsl" makes me want to warn everyone from using this.
The original Oren-Nayar paper can be found here: http://www1.cs.columbia.edu/CAVE/publications/pdfs/Oren_SIGGRAPH94.pdf
The text was updated successfully, but these errors were encountered: