Open jxo opened 4 years ago
@jxo I think it's just the comment equation that is wrong, and the actual function implementation is still correct.
@eric1221bday see here, the comment equation is right. https://en.wikipedia.org/wiki/Schlick's_approximation Lerp definition: inline Float Lerp(Float t, Float v1, Float v2) { return (1 - t) v1 + t v2; } Lerp(R0, SchlickWeight(cosTheta), 1) may be right
Lerp here is (1 - SchlickWeight(cosTheta)) R0 + SchlickWeight(cosTheta) not R0 + (1 - R0) SchlickWeight(cosTheta)