diff options
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/dimension/scene.h | 9 | ||||
-rw-r--r-- | libdimension/raytrace.c | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h index 671bc12..ccf3992 100644 --- a/libdimension/dimension/scene.h +++ b/libdimension/dimension/scene.h @@ -27,11 +27,10 @@ typedef enum { DMNSN_RENDER_NONE = 0, - DMNSN_RENDER_OBJECTS = 1 << 0, - DMNSN_RENDER_PIGMENT = 1 << 1, - DMNSN_RENDER_LIGHTS = 1 << 2, - DMNSN_RENDER_FINISH = 1 << 3, - DMNSN_RENDER_TRANSLUCENCY = 1 << 4, + DMNSN_RENDER_PIGMENT = 1 << 0, + DMNSN_RENDER_LIGHTS = 1 << 1, + DMNSN_RENDER_FINISH = 1 << 2, + DMNSN_RENDER_TRANSLUCENCY = 1 << 3, DMNSN_RENDER_FULL = ~DMNSN_RENDER_NONE } dmnsn_quality; diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index 6d9d0d9..f37c3a7 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -248,7 +248,7 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene, /* Set the pixel to the background color */ dmnsn_color color = scene->background; - if (scene->quality & DMNSN_RENDER_OBJECTS) { + if (scene->quality) { /* Get the ray corresponding to the (x,y)'th pixel */ dmnsn_line ray = (*scene->camera->ray_fn)( scene->camera, |