From 7c65ec1794105b6fd0f0c4f6b0e87e160c07736c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 11 Dec 2010 17:22:26 -0500 Subject: Reset the ior to 1.0 for every ray. --- libdimension/raytrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3