summaryrefslogtreecommitdiffstats
path: root/libdimension/reflective.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/reflective.c')
-rw-r--r--libdimension/reflective.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libdimension/reflective.c b/libdimension/reflective.c
index f1c7355..f44e4ff 100644
--- a/libdimension/reflective.c
+++ b/libdimension/reflective.c
@@ -40,13 +40,7 @@ dmnsn_reflective_finish_fn(const dmnsn_finish *finish,
double reflection = pow(dmnsn_vector_dot(ray, normal), params->falloff);
return dmnsn_color_illuminate(
- dmnsn_color_add(
- dmnsn_color_mul(
- reflection,
- dmnsn_color_sub(params->max, params->min)
- ),
- params->min
- ),
+ dmnsn_color_gradient(params->min, params->max, reflection),
reflect
);
}