diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-01-09 20:38:51 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-01-09 20:38:51 -0500 |
commit | 6787a9219748575cd63aaadd483f49a4fd83b543 (patch) | |
tree | 24291f7948ce2e7712260d6b76e48b68c086987e /tests | |
parent | e541fdb578ee9755c78d4f835edf0fa6bf8aea92 (diff) | |
download | dimension-6787a9219748575cd63aaadd483f49a4fd83b543.tar.xz |
Implement reflection.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libdimension/tests.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index 54f506a..52a9fda 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -29,14 +29,16 @@ dmnsn_new_default_scene() } /* Default finish */ + scene->default_texture->finish = dmnsn_new_ambient_finish( + dmnsn_color_mul(0.1, dmnsn_white) + ); + scene->default_texture->finish = dmnsn_new_finish_combination( + dmnsn_new_diffuse_finish(0.6), + scene->default_texture->finish + ); scene->default_texture->finish = dmnsn_new_finish_combination( - dmnsn_new_finish_combination( - dmnsn_new_ambient_finish( - dmnsn_color_mul(0.1, dmnsn_white) - ), - dmnsn_new_diffuse_finish(0.6) - ), - dmnsn_new_phong_finish(0.2, 40.0) + dmnsn_new_phong_finish(0.2, 40.0), + scene->default_texture->finish ); if (!scene->default_texture->finish) { dmnsn_delete_scene(scene); |