Skip to content

Completely wrong #1

@davidmanzanares

Description

@davidmanzanares

I'm sorry but the code has multiple bugs, it doesn't match the Oren Nayar formula

  • Variable A , is completely wrong calculated, your code even uses variables that are not needed to calculate A.
  • Variables s and t are probably wrong too. I'm not sure about this one, since your formulas can be equivalent... But I don't think so... A prove would be appreciated if I'm wrong.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions