From c2bd065bafe52a3e85be7a87945ed47aec7a33d9 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 6 May 2020 17:19:26 +0200 Subject: First version of global light --- scene.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scene.h') 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; -- cgit v1.2.3