rayzor
diff src/main.cc @ 19:252999cd1a3f
added reflection and refraction
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 15 Apr 2014 00:59:37 +0300 |
parents | 859ccadca671 |
children |
line diff
1.1 --- a/src/main.cc Mon Apr 14 18:35:37 2014 +0300 1.2 +++ b/src/main.cc Tue Apr 15 00:59:37 2014 +0300 1.3 @@ -156,7 +156,9 @@ 1.4 1.5 Box *box = new Box; 1.6 box->mtl.diffuse = Vector3(0.1, 0.4, 1.0); 1.7 - box->mtl.roughness = 0.9; 1.8 + box->mtl.specular = Vector3(0.3, 0.6, 1.0); 1.9 + box->mtl.roughness = 0.2; 1.10 + box->mtl.reflect = 0.8; 1.11 box->set_position(Vector3(0, -1.1, 0)); 1.12 box->set_scaling(Vector3(4, 0.1, 4)); 1.13 scene->add(box);