Replaced some fabsf() calls by std::abs
parent
742400485d
commit
10d47cef56
|
@ -744,8 +744,8 @@ public:
|
||||||
const Float D = cross(L_p, L_s).length();
|
const Float D = cross(L_p, L_s).length();
|
||||||
|
|
||||||
// For debug/explanation only: result without the ray-differentials
|
// For debug/explanation only: result without the ray-differentials
|
||||||
// D = (domegaV + m_eta * domegaL) * (fabsf(cosThetaL/cosThetaV)*domegaV
|
// D = (domegaV + m_eta * domegaL) * (std::abs(cosThetaL/cosThetaV)*domegaV
|
||||||
// + fabsf(cosThetaV/cosThetaL)*m_eta*domegaL);
|
// + std::abs(cosThetaV/cosThetaL)*m_eta*domegaL);
|
||||||
return result / D;
|
return result / D;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1480,8 +1480,8 @@ public:
|
||||||
attenuation(m_sigmaT, -(dist + dV));
|
attenuation(m_sigmaT, -(dist + dV));
|
||||||
|
|
||||||
const Float D = (dV + m_eta * dL) *
|
const Float D = (dV + m_eta * dL) *
|
||||||
(fabsf(cosThetaL / cosThetaV) * dV +
|
(std::abs(cosThetaL / cosThetaV) * dV +
|
||||||
fabsf(cosThetaV / cosThetaL) * m_eta * dL);
|
std::abs(cosThetaV / cosThetaL) * m_eta * dL);
|
||||||
result += ((1 - F) / D) * phase * value * weight;
|
result += ((1 - F) / D) * phase * value * weight;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue