From 6787a9219748575cd63aaadd483f49a4fd83b543 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 9 Jan 2010 20:38:51 -0500 Subject: Implement reflection. --- tests/libdimension/tests.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tests/libdimension') 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); -- cgit v1.2.3