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

No commit message

No commit message
parent f07149a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;