Fixed partial derivative NaN error for hair (#60)
parent
25e110c999
commit
1fd0f671df
|
@ -846,6 +846,7 @@ void HairShape::fillIntersectionRecord(const Ray &ray,
|
||||||
its.p += its.geoFrame.n * (m_kdtree->getRadius() - std::sqrt(local.y*local.y+local.z*local.z));
|
its.p += its.geoFrame.n * (m_kdtree->getRadius() - std::sqrt(local.y*local.y+local.z*local.z));
|
||||||
|
|
||||||
its.shFrame.n = its.geoFrame.n;
|
its.shFrame.n = its.geoFrame.n;
|
||||||
|
coordinateSystem(its.shFrame.n, its.dpdu, its.dpdv);
|
||||||
its.hasUVPartials = false;
|
its.hasUVPartials = false;
|
||||||
its.instance = this;
|
its.instance = this;
|
||||||
its.time = ray.time;
|
its.time = ray.time;
|
||||||
|
|
Loading…
Reference in New Issue