summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-15 12:35:02 +0800
committerKeuin <[email protected]>2022-04-15 12:35:02 +0800
commit569be1744453d9e03cf6ba6360c42b9da89a596a (patch)
tree47b7a01e30d00128b283cdc4295176e72a899772
parent6f18fbb4f14585376e6a57733b45df35c21eab4f (diff)
Remove unused macros.
-rw-r--r--hitlist.h5
-rw-r--r--main_simple_scanner.cpp2
2 files changed, 0 insertions, 7 deletions
diff --git a/hitlist.h b/hitlist.h
index 8073587..3b853de 100644
--- a/hitlist.h
+++ b/hitlist.h
@@ -22,11 +22,6 @@
//#define T_NORM_VISUAL
#define T_DIFFUSE
-// Select which diffuse method to use
-//#define DIFFUSE_SIMPLE // Diffuse with a random vector whose length is in [0, 1]
-#define DIFFUSE_LR // Diffuse with (possibly wrong) Lambertian Reflection, i.e. using a random unit vector
-//#define DIFFUSE_HEMI // Diffuse with hemispherical scattering, i.e. using a normalized random vector within the hemisphere
-
// A world, T is color depth
class hitlist {
std::vector<std::shared_ptr<object>> objects;
diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp
index f0a2099..264bf4e 100644
--- a/main_simple_scanner.cpp
+++ b/main_simple_scanner.cpp
@@ -16,8 +16,6 @@
#include "aa.h"
#include "material.h"
-#define DEMO_BALL
-
// T: intermediate color depth
template<typename T>
void generate_image(uint16_t image_width, uint16_t image_height, double viewport_width, double focal_length,