mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Ensure images used for textures are RGBA
This commit is contained in:
@ -455,7 +455,7 @@ class Camera(object):
|
||||
if path not in self.path_to_texture_id:
|
||||
# A way to increase tid's sequentially
|
||||
tid = len(self.path_to_texture_id)
|
||||
im = Image.open(path)
|
||||
im = Image.open(path).convert("RGBA")
|
||||
texture = self.ctx.texture(
|
||||
size=im.size,
|
||||
components=len(im.getbands()),
|
||||
|
Reference in New Issue
Block a user