Skip to content

Commit

Permalink
A couple more adjustments to the auto bias formula
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   src/yafraycore/scene.cc
  • Loading branch information
DavidBluecame committed Apr 18, 2015
1 parent b046fde commit 2e0ca6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yafraycore/scene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ bool scene_t::update()
shadowBias = sceneBound.longX();
if(shadowBias < sceneBound.longY()) shadowBias=sceneBound.longY();
if(shadowBias < sceneBound.longZ()) shadowBias=sceneBound.longZ();
shadowBias = YAF_SHADOW_BIAS * 0.1f * shadowBias;
shadowBias = YAF_SHADOW_BIAS * 0.25f * shadowBias;
rayMinDist = 0.1f * shadowBias;

Y_INFO << "Scene: total scene dimensions: X=" << sceneBound.longX() << ", Y=" << sceneBound.longY() << ", Z=" << sceneBound.longZ() << ", volume=" << sceneBound.vol() << ", calculated Shadow Bias=" << shadowBias << ", calculated Ray Min Dist=" << rayMinDist << yendl;
Expand Down Expand Up @@ -832,7 +832,7 @@ bool scene_t::update()
shadowBias = sceneBound.longX();
if(shadowBias < sceneBound.longY()) shadowBias=sceneBound.longY();
if(shadowBias < sceneBound.longZ()) shadowBias=sceneBound.longZ();
shadowBias = YAF_SHADOW_BIAS * 0.1f * shadowBias;
shadowBias = YAF_SHADOW_BIAS * 0.25f * shadowBias;
rayMinDist = 0.1f * shadowBias;

Y_INFO << "Scene: total scene dimensions: X=" << sceneBound.longX() << ", Y=" << sceneBound.longY() << ", Z=" << sceneBound.longZ() << ", volume=" << sceneBound.vol() << ", calculated Shadow Bias=" << shadowBias << ", calculated Ray Min Dist=" << rayMinDist << yendl;
Expand Down

0 comments on commit 2e0ca6d

Please sign in to comment.