aboutsummaryrefslogtreecommitdiff
path: root/scene.h
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-05-06 17:19:26 +0200
committerJulian T <julian@jtle.dk>2020-05-06 17:19:26 +0200
commitc2bd065bafe52a3e85be7a87945ed47aec7a33d9 (patch)
tree637c08399e3a6f20cff390d9c4e9a4116950efc8 /scene.h
parent86848ec1abaec38435d93d99a80cd5476967bd23 (diff)
First version of global light
Diffstat (limited to 'scene.h')
-rw-r--r--scene.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/scene.h b/scene.h
index cbaaf3a..738f143 100644
--- a/scene.h
+++ b/scene.h
@@ -71,6 +71,17 @@ typedef struct light_s{
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 depth;
+} settings_t;
+
typedef struct {
viewpoint_t view;
@@ -80,10 +91,11 @@ typedef struct {
color_t ambient;
color_t back;
+ settings_t *gfx;
// Environment light
// TODO make more general
// Slows things down alot
- unsigned env_samples;
+ bool env_enabled;
color_t env_color;
} space_t;