#ifndef _OPTIONS_H_ #define _OPTIONS_H_ /* compile time options from various files */ /* from GLOutput.h */ /* frame-duration in ms */ #define FRAME_DURATION 100 /* from MTRender.h */ /* number of threads to use */ #define THREADS 4 /* set to 1 to suppress progress indicator */ #define SILENT 0 /* update the finished line for once per pixel (or once per line if set to 0); only effective if not SILENT */ #define PROGRESS_PER_PIXEL 1 /* from Renderer.h */ /* use supersampling for antialiasing */ #define RENDERER_USE_SUPERSAMPLING 1 /* maximum allowed difference between the old and new average to stop generating additional rays */ #define RENDERER_SUPERSAMPLING_AVG 0.001f /* show number of generated ray graphically */ #define RENDERER_SHOW_RAY_COUNT 0 /* from WhittedIntegrator.h */ /* maximum recursion depth for reflection, refraction, ...; set to 0 for infinite */ #define WHITTED_MAX_DEPTH 5 /* stop recursion if the multipiler for the brightest color drops below this */ #define WHITTED_MIN_EFFECT 0.0001f #define WHITTED_MIN_EFFECT_ENABLED 1 /* from PointLight.h */ /* I'm unsure if shadow rays should be weakend by the transmission coefficent of materials; enabling this weakens them */ #define POINTLIGHT_USE_KT 0 /* from Primitive.h */ /* try speed up intersection tests */ #define OBJECT_GROUPS 1 /* use biliniar filtering */ #define PRIMITIVE_USE_BILINEAR 1 #endif