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 604a4b3c authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Adding minimum parameters to the Blinn and retro-Blinn BRDFs

parent a056955d
......@@ -39,6 +39,14 @@ class blinn_function : public nonlinear_function
//! \brief Get the vector of parameters for the function
virtual vec parameters() const ;
//! \brief The minimum parameter vector for this BRDF is the zero
//! vector. The specular intensity cannot be negative and the
//! exponent should not be either.
virtual vec getParametersMin() const
{
return vec::Zero(dimY()*2);
}
//! \brief Update the vector of parameters for the function
virtual void setParameters(const vec& p) ;
......
......@@ -40,6 +40,14 @@ class retroblinn_function : public nonlinear_function
//! \brief Get the vector of parameters for the function
virtual vec parameters() const ;
//! \brief The minimum parameter vector for this BRDF is the zero
//! vector. The specular intensity cannot be negative and the
//! exponent should not be either.
virtual vec getParametersMin() const
{
return vec::Zero(dimY()*2);
}
//! \brief Update the vector of parameters for the function
virtual void setParameters(const vec& p) ;
......
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