diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-11 20:23:23 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-11 20:23:23 -0400 |
commit | d9c51f605447b3a9058599425269defe34d3d8b0 (patch) | |
tree | 1f8994ba536d7dbed05ac8508ff7a1389a0259a5 /libdimension | |
parent | 9b580dfb8ecf1b1b4a68be61d302e24257f5c345 (diff) | |
download | dimension-d9c51f605447b3a9058599425269defe34d3d8b0.tar.xz |
Fix low-quality renders.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/raytrace.c | 2 |
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; } } } |