diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-01-14 01:32:15 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-01-14 01:32:15 -0500 |
commit | 2cbebd8502fa8ca6ca65d83c55e478a3ea502627 (patch) | |
tree | aa5c459ecef01d1a58e86162e14eea747b179047 /libdimension | |
parent | cbdaf9ff41649174b72b0453b8a399f6abb11e8f (diff) | |
download | dimension-2cbebd8502fa8ca6ca65d83c55e478a3ea502627.tar.xz |
Match POV-Ray transparency semantics a bit better.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/raytrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index 71b6e5c..0e197a9 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -451,8 +451,7 @@ dmnsn_raytrace_translucency(const dmnsn_raytrace_state *state, { dmnsn_color trans = color; if (state->pigment.filter || state->pigment.trans) { - trans = dmnsn_color_mul(1.0 - state->pigment.filter - state->pigment.trans, - color); + trans = dmnsn_color_mul(1.0 - state->pigment.trans, color); dmnsn_line trans_ray = dmnsn_new_line(state->r, state->intersection->ray.n); trans_ray = dmnsn_line_add_epsilon(trans_ray); |