summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-11 20:23:23 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-11 20:23:23 -0400
commitd9c51f605447b3a9058599425269defe34d3d8b0 (patch)
tree1f8994ba536d7dbed05ac8508ff7a1389a0259a5 /libdimension
parent9b580dfb8ecf1b1b4a68be61d302e24257f5c345 (diff)
downloaddimension-d9c51f605447b3a9058599425269defe34d3d8b0.tar.xz
Fix low-quality renders.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/raytrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 9b87364..ef46b0d 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -265,6 +265,7 @@ dmnsn_raytrace_pigment(dmnsn_raytrace_state *state)
{
state->pigment = TEXTURE_CALLBACK(state, pigment, pigment_fn, dmnsn_black,
state->r);
+ state->diffuse = state->pigment;
}
/* Get the color of a light ray at an intersection point */
@@ -355,6 +356,7 @@ dmnsn_raytrace_lighting(dmnsn_raytrace_state *state)
state->additional = dmnsn_color_add(specular, state->additional);
} else {
state->diffuse = state->pigment;
+ state->diffuse.filter = state->diffuse.trans = 0.0;
}
}
}