Commit f07149a3 authored by paps's avatar paps

--no commit message

--no commit message
parent 972b8dac
......@@ -87,5 +87,7 @@ LrColor LrOpticBasic:: compute(const LrRay &rayIn, const LrVector &rayOut,
LrColor colorPhong;
LrPoint point = rayIn.getOrigin();
colorPhong = m_pertColor->getColor(u, v, point);
return colorPhong;
}
......@@ -82,7 +82,7 @@ bool operator != (const LrPertColorTextProcTurbulence &lhs, const LrPertColorTex
LrColor LrPertColorTextProcTurbulence::getColor(Real u, Real v, LrPoint &point) const
{
Real noise = 0.0;
LrVector tmp(point.x,point.y,point.z);
LrVector tmp(1 * point.x,1 * point.y, 1 * point.z);
//tmp.normalize();
for (int i = 1; i <= m_level; i ++)
{
......
......@@ -145,7 +145,7 @@ int main(int argc, char** argv)
scene_A.generateImage(2);
//Sauvegarde de l'image
file = fopen("./test20.ppm","wb");
file = fopen("./test21.ppm","wb");
img_A.savePPM(file);
fclose(file);
......
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