summaryrefslogtreecommitdiffstats
path: root/libdimension/phong.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-13 15:32:01 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-13 15:32:01 -0500
commitc552664a8371a55f2e082507998f78228308672c (patch)
tree93464a9820630ec2e63a2e53b8f7fab6ff6b28cd /libdimension/phong.c
parent6787a9219748575cd63aaadd483f49a4fd83b543 (diff)
downloaddimension-c552664a8371a55f2e082507998f78228308672c.tar.xz
Split finish_fn into diffuse_fn and specular_fn.
Diffstat (limited to 'libdimension/phong.c')
-rw-r--r--libdimension/phong.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libdimension/phong.c b/libdimension/phong.c
index 637ff52..7ed6356 100644
--- a/libdimension/phong.c
+++ b/libdimension/phong.c
@@ -27,10 +27,10 @@
*/
static dmnsn_color
-dmnsn_phong_finish_fn(const dmnsn_finish *finish,
- dmnsn_color light, dmnsn_color color,
- dmnsn_vector ray, dmnsn_vector normal,
- dmnsn_vector viewer)
+dmnsn_phong_specular_fn(const dmnsn_finish *finish,
+ dmnsn_color light, dmnsn_color color,
+ dmnsn_vector ray, dmnsn_vector normal,
+ dmnsn_vector viewer)
{
double *params = finish->ptr;
@@ -64,9 +64,9 @@ dmnsn_new_phong_finish(double specular, double exp)
params[0] = specular;
params[1] = exp;
- finish->ptr = params;
- finish->finish_fn = &dmnsn_phong_finish_fn;
- finish->free_fn = &free;
+ finish->ptr = params;
+ finish->specular_fn = &dmnsn_phong_specular_fn;
+ finish->free_fn = &free;
}
return finish;
}