Commit 7a1b41ff authored by BATI Megane's avatar BATI Megane Committed by Romain Pacanowski
Browse files

Had forgotten to assign value when computed fresnel on several channels

parent 8d76401f
......@@ -186,7 +186,7 @@ fresnel( RADIANCE_TYPE n1, RADIANCE_TYPE k1, RADIANCE_TYPE n2, RADIANCE_TYPE k2,
for( unsigned int channel=0; channel < fresnel_value.size(); channel++)
{
fresnel(std::complex<float>(n1[channel], k1[channel]), std::complex<float>(n2[channel], k2[channel]), cos_theta_d);
fresnel_value[channel] = fresnel(std::complex<float>(n1[channel], k1[channel]), std::complex<float>(n2[channel], k2[channel]), cos_theta_d);
}
return fresnel_value;
}
......
Supports Markdown
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