diff --git a/README.md b/README.md index 4971f59f..cd341730 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ Moer is developed by NJUMeta (www.njumeta.com) from Nanjing University. ![classroom](https://user-images.githubusercontent.com/46410388/204492936-a7fc480b-1557-44e9-afaf-56d0ff1537a2.jpg) ![hair](https://yjpp.oss-cn-hangzhou.aliyuncs.com/uPic/C6966B38E3AD16F8AC9CC9D86C73921E.jpg) -![hair](https://yjpp.oss-cn-hangzhou.aliyuncs.com/uPic/curly-hair.png) ![teapot](https://yjpp.oss-cn-hangzhou.aliyuncs.com/uPic/tea-pot.png) ![disney](https://yjpp.oss-cn-hangzhou.aliyuncs.com/uPic/disneybsdf.png) ## Checklist diff --git a/src/FunctionLayer/Material/HairMaterial.cpp b/src/FunctionLayer/Material/HairMaterial.cpp index 09b42516..e9475979 100644 --- a/src/FunctionLayer/Material/HairMaterial.cpp +++ b/src/FunctionLayer/Material/HairMaterial.cpp @@ -24,11 +24,4 @@ std::shared_ptr < BxDF > HairMaterial::getBxDF(const Intersection & intersect) c void HairMaterial::setFrame(Intersection &its, const Ray &ray) const { its.shFrame = Frame(its.geometryNormal); return; - Vec3d T, B, N; - N = its.geometryNormal; - B = its.geometryTangent; - T = cross(B, N); - T = normalize(T - dot(T, N) * N); - B = cross(N, T); - its.shFrame = Frame(T, B, N); }