diff options
author | Julian T <julian@jtle.dk> | 2020-05-06 17:19:26 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-05-06 17:19:26 +0200 |
commit | c2bd065bafe52a3e85be7a87945ed47aec7a33d9 (patch) | |
tree | 637c08399e3a6f20cff390d9c4e9a4116950efc8 /scene.h | |
parent | 86848ec1abaec38435d93d99a80cd5476967bd23 (diff) |
First version of global light
Diffstat (limited to 'scene.h')
-rw-r--r-- | scene.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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; |