aboutsummaryrefslogtreecommitdiff
path: root/scene.h
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-07-25 00:09:53 +0200
committerJulian T <julian@jtle.dk>2020-07-25 00:09:53 +0200
commitdbba33fcd07c9e81e3ca9bc4f5e8185d364fb792 (patch)
tree7e3b570853a18c7f7670c870f8bc6a09bb287a4f /scene.h
parentef684a7d2ad2934af872cb19a413c95d1005c4b6 (diff)
Further experimentation with pathtracingpath_tracing
Probably starting over in cpp
Diffstat (limited to 'scene.h')
-rw-r--r--scene.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/scene.h b/scene.h
index e7ee95f..7cd388e 100644
--- a/scene.h
+++ b/scene.h
@@ -14,7 +14,10 @@
#define TYPE_L_POINT 1
#define TYPE_L_AREA 2
-#define CONTAINER_SIZE(objs, mats, ligs) (sizeof(container_t) + objs * sizeof(object_t) + ligs * sizeof(light_t))
+#define CONTAINER_SIZE(objs, mats, ligs) (sizeof(container_t) + \
+ objs * sizeof(object_t) + \
+ mats * sizeof(material_t) + \
+ ligs * sizeof(light_t))
typedef struct {
vector_t center;
@@ -69,18 +72,11 @@ typedef struct light_s{
struct light_s *next;
} light_t;
-light_t l;
-
// Graphics settings
// Should actually sit in ray.c
typedef struct {
- unsigned arealight_samples;
- unsigned antialias_samples;
- unsigned envlight_samples;
- unsigned globallight_samples;
-
+ unsigned samples;
unsigned depth;
- unsigned gl_opt_depth;
} settings_t;
typedef struct {