Skip to content

Commit

Permalink
enabled ambient light in tutorial06
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwoop committed Jun 26, 2014
1 parent 5795e78 commit 697a44f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tutorials/tutorial06/tutorial06_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,10 @@ Vec3fa renderPixelFunction(float x, float y, rand_state& state, const Vec3fa& vx
Sample3f wi1;
Vec3fa c = BRDF__sample(brdf,Lw, wo, dg, wi1, outside, Vec2f(frand(state),frand(state)));

#if 0
/* iterate over ambient lights */
for (size_t i=0; i<g_ispc_scene->numAmbientLights; i++)
{
#if 1
#if 0
Vec3fa L0 = Vec3fa(0.0f);
Sample3f wi0; float tMax0;
Vec3fa Ll0 = AmbientLight__sample(g_ispc_scene->ambientLights[i],dg,wi0,tMax0,Vec2f(frand(state),frand(state)));
Expand All @@ -684,7 +683,7 @@ Vec3fa renderPixelFunction(float x, float y, rand_state& state, const Vec3fa& vx
}
#endif

#if 0
#if 1
Vec3fa L1 = Vec3fa(0.0f);
Vec3fa Ll1 = AmbientLight__eval(g_ispc_scene->ambientLights[i],wi1.v);
if (wi1.pdf > 0.0f) {
Expand All @@ -708,7 +707,6 @@ Vec3fa renderPixelFunction(float x, float y, rand_state& state, const Vec3fa& vx
}
#endif
}
#endif

Sample3f wi; float tMax;

Expand Down

0 comments on commit 697a44f

Please sign in to comment.