Incremental

This commit is contained in:
Sridhar Ramesh
2018-02-20 21:54:40 -08:00
parent c2b9417c6a
commit c84b26ccce
3 changed files with 63 additions and 19 deletions

View File

@ -433,12 +433,12 @@ class Camera(object):
# When the output alpha is 0 for full transparency,
# we have a choice over what RGB value to use in our
# output representation. We choose 0.0 here.
# output representation. We choose 0 here.
out_rgb = fdiv(
src_rgb*src_a[..., None] + \
dst_rgb*dst_a[..., None]*(1.0-src_a[..., None]),
out_a[..., None],
zero_over_zero_value = 0.0
zero_over_zero_value = 0
)
self.pixel_array[..., :3] = out_rgb*self.rgb_max_val