fix an error in the hair intersection code reported by Pramook Khungurn
parent
103a72ad6c
commit
cf4ba27ee9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue