Text archives Help
- From: arobison@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1938 - trunk/Engine/Shadows
- Date: Wed, 19 Dec 2007 09:33:11 -0700 (MST)
Author: arobison
Date: Wed Dec 19 09:33:09 2007
New Revision: 1938
Modified:
trunk/Engine/Shadows/HardShadows.cc
Log:
Fixing hard shadow attenuation. Everything should work correctly now, let me
know if you still see attenuated shadow artifacts.
Modified: trunk/Engine/Shadows/HardShadows.cc
==============================================================================
--- trunk/Engine/Shadows/HardShadows.cc (original)
+++ trunk/Engine/Shadows/HardShadows.cc Wed Dec 19 09:33:09 2007
@@ -271,14 +271,15 @@
++s_index) {
subPacket.setHitMaterial(s_index, NULL);
subPacket.setOrigin(s_index,
subPacket.getHitPosition(s_index));
- Real new_distance = distance_left.get(i) -
subPacket.getMinT(i);
- subPacket.overrideMinT(i, new_distance);
- distance_left.set(i, new_distance);
- }
+ Real new_distance = distance_left.get(s_index) -
subPacket.getMinT(s_index);
+ subPacket.overrideMinT(s_index, new_distance);
+ distance_left.set(s_index, new_distance);
+ }
context.scene->getObject()->intersect(context, subPacket);
} else {
// The ray has reached its saturation point, mask it off
rayAttenuated[i] = false;
+ shadowRays.maskRay(i);
}
}
i=end;
- [Manta] r1938 - trunk/Engine/Shadows, arobison, 12/19/2007
Archive powered by MHonArc 2.6.16.