Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 301a6beb authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Correction of an error in the export code

parent 08a5f14c
......@@ -442,9 +442,9 @@ void isotropic_lafortune_function::save_brdfexplorer(const std::string& filename
{
file << " // Lobe number " << n+1 << std::endl;
file << " n = " << _N[n] << "; " << std::endl;
file << " Cx = " << _C[0*_n + n] << "; " << std::endl;
file << " Cy = " << _C[0*_n + n] << "; " << std::endl;
file << " Cz = " << _C[1*_n + n] << "; " << std::endl;
file << " Cx = " << _C[2*n + 0] << "; " << std::endl;
file << " Cy = " << _C[2*n + 0] << "; " << std::endl;
file << " Cz = " << _C[2*n + 1] << "; " << std::endl;
file << " D += pow(max(Cx * L.x * V.x + Cy * L.y * V.y + Cz * L.z * V.z, ";
type_definition(file, _nY) << "(0.0)), n);" << std::endl;
file << std::endl;
......
......@@ -97,7 +97,7 @@ class isotropic_lafortune_function : public nonlinear_function
//! \brief Provide the coefficient of the monochromatic lobe number
//! n for the color channel number c.
void getCurrentLobe(int n, int c, double& Cx, double& Cz, double& N) const
inline void getCurrentLobe(int n, int c, double& Cx, double& Cz, double& N) const
{
Cx = _C[(n*_nY + c)*2 + 0];
Cz = _C[(n*_nY + c)*2 + 1];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment