fix an error in the hair intersection code reported by Pramook Khungurn

metadata
Wenzel Jakob 2014-03-20 12:29:49 +01:00
parent 103a72ad6c
commit cf4ba27ee9
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ public:
dot(pointFar - v2, n2) <= 0) { dot(pointFar - v2, n2) <= 0) {
if (farT > maxt) if (farT > maxt)
return false; return false;
p = Point(rayO + rayD * nearT); p = Point(rayO + rayD * farT);
t = (Float) farT; t = (Float) farT;
} else { } else {
return false; return false;