summaryrefslogtreecommitdiffstats
path: root/libdimension/raytrace.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-09 00:38:55 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-09 00:38:55 -0500
commit019028e8a182268dc1d702e4738a58410cdeb383 (patch)
treec6bed74cceaf34197fb8970f6a835c60157789bd /libdimension/raytrace.c
parenta76d4f1fb96633e7f348ba6aa0c14b726e15e28e (diff)
downloaddimension-019028e8a182268dc1d702e4738a58410cdeb383.tar.xz
Don't just use quick_color for solid_color pigments.
quick_color should be able to be used to change an object's color for low-quality-renders.
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r--libdimension/raytrace.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 89908fa..2d93c86 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -258,10 +258,11 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene,
static void
dmnsn_raytrace_pigment(dmnsn_raytrace_state *state)
{
- state->pigment = TEXTURE_PROPERTY(state, pigment, quick_color, dmnsn_black);
if (state->scene->quality & DMNSN_RENDER_PIGMENT) {
- state->pigment = TEXTURE_CALLBACK(state, pigment, pigment_fn,
- state->pigment, state->r);
+ state->pigment = TEXTURE_CALLBACK(state, pigment, pigment_fn, dmnsn_black,
+ state->r);
+ } else {
+ state->pigment = TEXTURE_PROPERTY(state, pigment, quick_color, dmnsn_black);
}
state->diffuse = state->pigment;
}