~turminal/raytracing

81123896337f96bbe0c2ab3196ed2ed1aeea6c3b — Bor Grošelj Simić 2 years ago 47d0185
increase t cutoff a bit

an amazing performance gain
1 files changed, 1 insertions(+), 1 deletions(-)

M main.ha
M main.ha => main.ha +1 -1
@@ 17,7 17,7 @@ fn compute_color(scene: *hittable, r: *ray, depth: uint) color = {
	};

	let rec = hit_record { ... };
	if (hit(scene, r, (0.0, math::INF), &rec)) {
	if (hit(scene, r, (0.001, math::INF), &rec)) {
		*r = ray {
			origin = rec.point,
			direction = sum(rec.normal, random_unit()),