Blender Git Commit Log

Git Commits -> Revision d9281a6

Revision d9281a6 by Lukas Stockner (master)
July 16, 2016, 18:54 (GMT)
Cycles: Fix three numerical issues in the fresnel, normal map and Beckmann code

- In fresnel_dielectric, the differentials calculation sometimes divided by zero.
- When the normal map was (0.5, 0.5, 0.5), the code would try to normalize a zero vector. Now, it just uses the regular normal as a fallback.
- The approximate error function used in Beckmann sampling sometimes overflowed to inf while calculating r^16. The final value is 1 - 1/r^16, however,
so now it just returns 1 if the computation would overflow otherwise.

Commit Details:

Full Hash: d9281a6332d2273356e0d3d042d64157fb7d06c8
Parent Commit: 5ba78d7
Lines Changed: +11, -4

3 Modified Paths:

/intern/cycles/kernel/closure/bsdf_util.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_tex_coord.h (+7, -3) (Diff)
/intern/cycles/util/util_math_fast.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021