summaryrefslogtreecommitdiffstats
path: root/tests/libdimension/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libdimension/tests.c')
-rw-r--r--tests/libdimension/tests.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c
index fe914f4..e5d4a06 100644
--- a/tests/libdimension/tests.c
+++ b/tests/libdimension/tests.c
@@ -31,7 +31,13 @@ dmnsn_new_default_scene()
}
/* Default finish */
- scene->default_texture->finish = dmnsn_new_diffuse_finish();
+
+ scene->default_texture->finish = dmnsn_new_phong_finish(1.0, 0.5, 50.0);
+ if (!scene->default_texture->finish) {
+ dmnsn_delete_scene(scene);
+ return NULL;
+ }
+
scene->default_texture->finish->ambient = 0.1;
/* Background color */
@@ -116,7 +122,7 @@ dmnsn_new_default_scene()
/* Now make a light */
dmnsn_light *light = dmnsn_new_point_light(
- dmnsn_vector_construct(-5.0, 20.0, -5.0),
+ dmnsn_vector_construct(-15.0, 20.0, -5.0),
dmnsn_white
);
if (!light) {