erebus

diff liberebus/src/rt.cc @ 29:fb20e3855740

write the rendered image when pressing '`' and on exit.
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 06 Jun 2014 15:08:09 +0300
parents 4a0a288ffb27
children 53a98c148bf8
line diff
     1.1 --- a/liberebus/src/rt.cc	Fri Jun 06 14:39:40 2014 +0300
     1.2 +++ b/liberebus/src/rt.cc	Fri Jun 06 15:08:09 2014 +0300
     1.3 @@ -55,5 +55,7 @@
     1.4  
     1.5  		res += ray_trace(ctx, sample_ray, iter + 1) * color;
     1.6  	}
     1.7 +
     1.8 +	res.w = 1.0;
     1.9  	return res;
    1.10  }