erebus

diff liberebus/src/rt.cc @ 18:09028848f276

- implemented Box object intersection - implemented interactive camera manipulation
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 26 May 2014 23:34:12 +0300
parents e9da2916bc79
children 56d504cc555a
line diff
     1.1 --- a/liberebus/src/rt.cc	Mon May 26 05:41:28 2014 +0300
     1.2 +++ b/liberebus/src/rt.cc	Mon May 26 23:34:12 2014 +0300
     1.3 @@ -30,6 +30,7 @@
     1.4  	const Ray &ray = hit.world_ray;
     1.5  
     1.6  	Vector3 norm = hit.calc_normal();
     1.7 +	//return norm * 0.5 + Vector3(0.5, 0.5, 0.5);
     1.8  	Vector2 texcoords = hit.calc_texcoords();
     1.9  
    1.10  	Color color = mtl->get_attrib_color("diffuse", texcoords.x, texcoords.y);