summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-09 14:23:38 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-09 14:23:38 -0500
commit1044badd2e625c73eae616f6a0d10479dde54db5 (patch)
treeedc9b28296d8e68b4a6e7fd1e0c69a3802a63cd8 /libdimension
parent89da144e4095ecece603a5d7adf29b7a8e493bb1 (diff)
downloaddimension-1044badd2e625c73eae616f6a0d10479dde54db5.tar.xz
Render multiple (or zero) lights correctly.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/raytrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index da78411..dc017f5 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -332,8 +332,9 @@ dmnsn_raytrace_shoot(dmnsn_line ray, dmnsn_scene *scene,
}
dmnsn_delete_intersection(shadow_caster);
- color = illum;
}
+
+ color = illum;
}
/* Delete the intersection */