Text archives Help
- From: "Thiago Ize" <
>
- To:
- Subject: [Manta] r2305 - trunk/Model/Lights
- Date: Thu, 17 Jul 2008 15:56:35 -0600 (MDT)
Author: thiago
Date: Thu Jul 17 15:56:34 2008
New Revision: 2305
Modified:
trunk/Model/Lights/AreaLight.cc
Log:
Fix bug from half a year ago whereby the SSE code path worked for path
tracing but the non-sse code path produced darker images.
Modified: trunk/Model/Lights/AreaLight.cc
==============================================================================
--- trunk/Model/Lights/AreaLight.cc (original)
+++ trunk/Model/Lights/AreaLight.cc Thu Jul 17 15:56:34 2008
@@ -119,8 +119,7 @@
cosine);
for (unsigned int c = 0; c < 3; c++) {
_mm_store_ps(&destData->color[c][i],
- _mm_or_ps(_mm_and_ps(black_light, _mm_setzero_ps()),
- _mm_andnot_ps(black_light,
_mm_div_ps(_mm_set1_ps(color[c]), solid_pdf))));
+ _mm_andnot_ps(black_light,
_mm_div_ps(_mm_set1_ps(color[c]), solid_pdf)));
}
}
}
@@ -131,8 +130,7 @@
Real cosine = -Dot(dir, normals.get(i));
destRays.setDirection(i, dir);
destRays.overrideMinT(i, len - T_EPSILON);
- if (cosine <= Real(0) ||
- sourceRays.data->ignoreEmittedLight[i]) {
+ if (cosine <= Real(0)) {
// Wrong side of the light
destRays.setColor(i, Color::black());
} else {
@@ -151,8 +149,7 @@
Real cosine = -Dot(dir, normals.get(i));
destRays.setDirection(i, dir);
destRays.overrideMinT(i, len - T_EPSILON);
- if (cosine <= Real(0) ||
- sourceRays.data->ignoreEmittedLight[i]) {
+ if (cosine <= Real(0)) {
// Wrong side of the light
destRays.setColor(i, Color::black());
} else {
- [Manta] r2305 - trunk/Model/Lights, Thiago Ize, 07/17/2008
Archive powered by MHonArc 2.6.16.