diff --git a/data/tests/test_bsdf.xml b/data/tests/test_bsdf.xml index b88cf96b..444c6462 100644 --- a/data/tests/test_bsdf.xml +++ b/data/tests/test_bsdf.xml @@ -8,6 +8,11 @@ + + + + + @@ -55,10 +60,5 @@ - - - - - diff --git a/src/bsdfs/roughmetal.cpp b/src/bsdfs/roughmetal.cpp index 6f13eae0..295cf880 100644 --- a/src/bsdfs/roughmetal.cpp +++ b/src/bsdfs/roughmetal.cpp @@ -70,7 +70,7 @@ public: /** * Beckmann distribution function for gaussian random surfaces - * @param thetaM Tangent of the angle between M and N. + * \param thetaM Tangent of the angle between M and N. */ Float beckmannD(const Vector &m) const { Float ex = Frame::tanTheta(m) / m_alphaB; @@ -91,11 +91,11 @@ public: /** * Smith's shadow-masking function G1 for the Beckmann distribution - * @param m The microsurface normal - * @param v An arbitrary direction + * \param m The microsurface normal + * \param v An arbitrary direction */ Float smithBeckmannG1(const Vector &v, const Vector &m) const { - if (dot(v, m)*Frame::cosTheta(v) <= 0) + if (dot(v, m) * Frame::cosTheta(v) <= 0) return 0.0; const Float tanTheta = Frame::tanTheta(v); @@ -109,7 +109,8 @@ public: if (a >= 1.6f) return 1.0f; - return (3.535f * a + 2.181f * aSqr)/(1.0f + 2.276f * a + 2.577f * aSqr); + return (3.535f * a + 2.181f * aSqr) / + (1.0f + 2.276f * a + 2.577f * aSqr); } inline Vector reflect(const Vector &wi, const Normal &n) const {