summaryrefslogtreecommitdiffstats
path: root/libdimension/diffuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/diffuse.c')
-rw-r--r--libdimension/diffuse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdimension/diffuse.c b/libdimension/diffuse.c
index 895b918..7f7d2d8 100644
--- a/libdimension/diffuse.c
+++ b/libdimension/diffuse.c
@@ -33,7 +33,11 @@ dmnsn_diffuse_finish_fn(const dmnsn_finish *finish,
{
double *diffuse = finish->ptr;
double diffuse_factor = (*diffuse)*dmnsn_vector_dot(ray, normal);
- return dmnsn_color_mul(diffuse_factor, dmnsn_color_illuminate(light, color));
+ dmnsn_color ret
+ = dmnsn_color_mul(diffuse_factor, dmnsn_color_illuminate(light, color));
+ ret.filter = 0.0;
+ ret.trans = 0.0;
+ return ret;
}
dmnsn_finish *