aboutsummaryrefslogtreecommitdiff
path: root/scene.h
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-03-10 11:57:41 +0100
committerJulian T <julian@jtle.dk>2020-03-10 11:57:41 +0100
commit6f7f4b6fcb1ebc9243df515c838dde198b636bc1 (patch)
tree36b32f835cda18cccbe6c05251683d698073d43f /scene.h
parent6ee08c8370f578e59dd4c6bb5f542b469f0d3748 (diff)
Initial with a link to resources
Diffstat (limited to 'scene.h')
-rw-r--r--scene.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene.h b/scene.h
index 90e5ebb..7eef588 100644
--- a/scene.h
+++ b/scene.h
@@ -62,6 +62,12 @@ typedef struct {
color_t ambient;
color_t back;
+
+ // Environment light
+ // TODO make more general
+ // Slows things down alot
+ bool env_enabled;
+ color_t env_color;
} space_t;
object_t *add_sphere(space_t *s, vector_t *c, COORD_T r, material_t *m);