diff options
Diffstat (limited to 'libdimension/lambertian.c')
-rw-r--r-- | libdimension/lambertian.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libdimension/lambertian.c b/libdimension/lambertian.c index 8227cc5..16dc910 100644 --- a/libdimension/lambertian.c +++ b/libdimension/lambertian.c @@ -35,11 +35,7 @@ dmnsn_lambertian_diffuse_fn(const dmnsn_diffuse *diffuse, { double *coeff = diffuse->ptr; double diffuse_factor = fabs((*coeff)*dmnsn_vector_dot(ray, normal)); - dmnsn_color ret - = dmnsn_color_mul(diffuse_factor, dmnsn_color_illuminate(light, color)); - ret.filter = 0.0; - ret.trans = 0.0; - return ret; + return dmnsn_color_mul(diffuse_factor, dmnsn_color_illuminate(light, color)); } dmnsn_diffuse * |