Skip to content
Snippets Groups Projects
Commit 1fd0f671 authored by Girish Ramesh's avatar Girish Ramesh Committed by Wenzel Jakob
Browse files

Fixed partial derivative NaN error for hair (#60)

parent 25e110c9
No related branches found
No related tags found
No related merge requests found
......@@ -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.shFrame.n = its.geoFrame.n;
coordinateSystem(its.shFrame.n, its.dpdu, its.dpdv);
its.hasUVPartials = false;
its.instance = this;
its.time = ray.time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment