erebus
diff liberebus/src/rt.cc @ 26:c8a6fb04fefa
multithreadededit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 01 Jun 2014 19:19:40 +0300 |
parents | 56d504cc555a |
children | 4a0a288ffb27 |
line diff
1.1 --- a/liberebus/src/rt.cc Sat May 31 06:21:09 2014 +0300 1.2 +++ b/liberebus/src/rt.cc Sun Jun 01 19:19:40 2014 +0300 1.3 @@ -28,11 +28,11 @@ 1.4 const Material *mtl = &obj->mtl; 1.5 const Reflectance *brdf = obj->brdf; 1.6 const Ray &ray = hit.world_ray; 1.7 - bool entering = true; 1.8 + //bool entering = true; 1.9 1.10 Vector3 norm = hit.calc_normal(); 1.11 if(dot_product(ray.dir, norm) > 0.0) { 1.12 - entering = false; 1.13 + //entering = false; 1.14 norm = -norm; 1.15 } 1.16