Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pxf/pxf-tech2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonnyg committed Mar 22, 2011
2 parents b0923e7 + abb3216 commit 2c81fbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Projects/Lightning/Source/ClientLib/Renderer.cpp
Expand Up @@ -317,8 +317,11 @@ bool calc_ray_contrib(ray_t *ray, batch_blob_t *datablob, Pxf::Math::Vec3f *res,
Pxf::Message("calc_ray_contrib", "Bounce calculations failed!");
return false;
}



if (bounce_contrib.r < 0.0f)
printf("error with bounce contrib!!\n");

*res += (bounce_contrib / (float)bounce) * m.reflectiveness * attscale;
}
}
Expand Down

0 comments on commit 2c81fbc

Please sign in to comment.