src/raytracer.cc
branchpyrit
changeset 40 929aad02c5f2
parent 34 28f6e8b9d5d1
child 42 fbdeb3e04543
--- a/src/raytracer.cc	Fri Dec 14 16:51:22 2007 +0100
+++ b/src/raytracer.cc	Mon Dec 17 22:03:50 2007 +0100
@@ -190,7 +190,7 @@
 		}
 
 		// ambient occlusion
-		if (ao_samples)
+		if (!from_inside && ao_samples)
 		{
 			Float miss = 0;
 			for (int i = 0; i < ao_samples; i++) {