Commit 6451fa7a authored by Emeric Verschuur's avatar Emeric Verschuur

--no commit message

--no commit message
parent f07149a3
......@@ -236,7 +236,7 @@ LrColor LrSceneRayTracing::computeFromSource(const LrRay &ray, LrHit &hit)
if (m_binder->getIntersection(rayLight, NULL, 0.0f, dist) == false)
{
colorTmp += (((LrEntityLight*)(*itObjs))->getColor())*hit.optic->compute(rayLight.getDirection(),-ray.getDirection(),hit.normal,hit.tangent,hit.u,hit.v);
colorTmp += (((LrEntityLight*)(*itObjs))->getColor())*hit.optic->compute(rayLight,-ray.getDirection(),hit.normal,hit.tangent,hit.u,hit.v);
}
}
colorResult += colorTmp/nbRayOnLight;
......
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