added distrib desctructor, closing sockets
git-svn-id: svn://anubis/fart/trunk@235 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
fed63d7d1e
commit
e21d948d52
3 files changed
+9
-1
No files matched your search
+1
-1
@@ -425,7 +425,7 @@ Color Scene::calculateLightContribution(const Ray & toLight,
|
||||
contrib *= hit.shape->getMaterial()->getTransparency();
|
||||
contrib *= hit.shape->getMaterial()->getDiffuseColor();
|
||||
|
||||
if ( contrib.r < SCENE_FACTOR_THRESHOLD
|
||||
if ( contrib.r < SCENE_FACTOR_THRESHOLD
|
||||
&& contrib.g < SCENE_FACTOR_THRESHOLD
|
||||
&& contrib.b < SCENE_FACTOR_THRESHOLD )
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user