summaryrefslogtreecommitdiffstats
path: root/libdimension/raytrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r--libdimension/raytrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 9d330ab..c91b74c 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -202,7 +202,6 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene,
.parent = NULL,
.scene = scene,
.prtree = prtree,
- .ior = 1.0
};
/* Iterate through each pixel */
@@ -217,6 +216,7 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene,
/* Shoot a ray */
state.reclevel = scene->reclimit;
+ state.ior = 1.0;
dmnsn_color color = dmnsn_raytrace_shoot(&state, ray);
dmnsn_set_pixel(scene->canvas, x, y, color);