summaryrefslogtreecommitdiffstats
path: root/tests/libdimension/tests.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-09 20:38:51 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-09 20:38:51 -0500
commit6787a9219748575cd63aaadd483f49a4fd83b543 (patch)
tree24291f7948ce2e7712260d6b76e48b68c086987e /tests/libdimension/tests.c
parente541fdb578ee9755c78d4f835edf0fa6bf8aea92 (diff)
downloaddimension-6787a9219748575cd63aaadd483f49a4fd83b543.tar.xz
Implement reflection.
Diffstat (limited to 'tests/libdimension/tests.c')
-rw-r--r--tests/libdimension/tests.c16
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);