summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-14 22:56:53 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-14 22:56:53 -0500
commit67c97f0b784598534f78c74c8ba4258fc275f762 (patch)
tree5dda70a3e069268840aa9d4633a16a93e5f96317
parent2d5af0e0da6b5cb8748e1017f52dbe3e3af97b92 (diff)
downloaddimension-67c97f0b784598534f78c74c8ba4258fc275f762.tar.xz
Don't reflect transparent colors.
-rw-r--r--libdimension/raytrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 513f809..a76a2f5 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -432,6 +432,8 @@ dmnsn_raytrace_reflection(const dmnsn_raytrace_state *state)
state, finish, reflection_fn, dmnsn_black,
rec, state->pigment, state->reflected, state->intersection->normal
);
+ reflected.filter = 0.0;
+ reflected.trans = 0.0;
}
return reflected;