From bafe01580d1470f703a95a434b38998843440cd0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 17 Apr 2010 12:34:12 -0400 Subject: Don't render transparent shadows with transparency off. --- libdimension/raytrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index 9ef54e1..59ad1b3 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -299,7 +299,8 @@ dmnsn_raytrace_light_ray(const dmnsn_raytrace_state *state, shadow_state.reclevel = reclevel; dmnsn_raytrace_pigment(&shadow_state); - if (shadow_state.pigment.filter || shadow_state.pigment.trans) { + if ((state->scene->quality & DMNSN_RENDER_TRANSLUCENCY) + && (shadow_state.pigment.filter || shadow_state.pigment.trans)) { color = dmnsn_color_filter(color, shadow_state.pigment); shadow_ray.x0 = dmnsn_line_point(shadow_ray, shadow_caster.t); shadow_ray.n = dmnsn_vector_sub(light->x0, shadow_ray.x0); -- cgit v1.2.3