summaryrefslogtreecommitdiffstats
path: root/tests/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libdimension')
-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);