--- a/include/raytracer.h Wed Mar 26 14:29:21 2008 +0100
+++ b/include/raytracer.h Wed Mar 26 17:03:38 2008 +0100
@@ -57,14 +57,12 @@
int ao_samples;
Float ao_distance, ao_angle;
int num_threads;
- int subsample;
- int oversample; // 0 = no, 1 = 5x, 2 = 9x, 3 = 16x
int max_depth;
Vector3 SphereDistribute(int i, int n, Float extent, Vector3 &normal);
public:
Raytracer(): top(NULL), camera(NULL), lights(), bg_colour(0.0, 0.0, 0.0),
- ao_samples(0), num_threads(2), subsample(8), oversample(0), max_depth(3) {};
+ ao_samples(0), num_threads(2), max_depth(3) {};
void render();
Colour raytrace(Ray &ray, int depth, Shape *origin_shape);
void addshape(Shape *shape) { top->addShape(shape); };
@@ -73,10 +71,7 @@
void setCamera(Camera *cam) { camera = cam; };
void setTop(Container *atop) { top = atop; };
Container *getTop() { return top; };
- void setSubsample(int sub) { subsample = sub; };
- int getSubsample() { return subsample; };
- void setOversample(int osa) { oversample = osa; };
- int getOversample() { return oversample; };
+
void setMaxDepth(int newdepth) { max_depth = newdepth; };
void ambientocclusion(int samples, Float distance, Float angle);