diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-30 23:19:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-30 23:49:48 +0300 |
commit | 3f5771475d55ed981bd98ee5810e62b68bccbb38 (patch) | |
tree | 138e5741f19486883279e1252356a813120bcccc /source/blender/blenlib | |
parent | cb2007906f902e4daeaf773833ef61da4020ea89 (diff) |
Cycles: Don't perform re-intersection if ray distance is zero
It is possible that ray distance will be zero which would make intersection
refinement return NaN as the refined position which would later lead to all
sort of mathematical issues.
Don't think there are ways to improve intersection accuracy for such rays
so just return original intersection coordinate.
This should fix T43475.
TODO: Need to look into possible issues in Ashikhmin BSDF which might return
zero-length reflected/transmitted ray?
Diffstat (limited to 'source/blender/blenlib')
0 files changed, 0 insertions, 0 deletions