mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Incremental
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user