mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Push depth_test into __init__ args
This commit is contained in:
parent
9e077b29db
commit
f64cae1db4
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,6 @@ class Mobject(object):
|
||||||
shader_dtype: Sequence[Tuple[str, type, Tuple[int]]] = [
|
shader_dtype: Sequence[Tuple[str, type, Tuple[int]]] = [
|
||||||
('point', np.float32, (3,)),
|
('point', np.float32, (3,)),
|
||||||
]
|
]
|
||||||
depth_test: bool = False
|
|
||||||
|
|
||||||
CONFIG = {} # Need to delete
|
CONFIG = {} # Need to delete
|
||||||
|
|
||||||
|
@ -85,6 +84,7 @@ class Mobject(object):
|
||||||
texture_paths: dict[str, str] | None = None,
|
texture_paths: dict[str, str] | None = None,
|
||||||
# If true, the mobject will not get rotated according to camera position
|
# If true, the mobject will not get rotated according to camera position
|
||||||
is_fixed_in_frame: bool = False,
|
is_fixed_in_frame: bool = False,
|
||||||
|
depth_test: bool = False,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
self.color = color
|
self.color = color
|
||||||
|
@ -94,6 +94,7 @@ class Mobject(object):
|
||||||
self.gloss = gloss
|
self.gloss = gloss
|
||||||
self.texture_paths = texture_paths
|
self.texture_paths = texture_paths
|
||||||
self.is_fixed_in_frame = is_fixed_in_frame
|
self.is_fixed_in_frame = is_fixed_in_frame
|
||||||
|
self.depth_test = depth_test
|
||||||
|
|
||||||
digest_config(self, kwargs) # Need to delete
|
digest_config(self, kwargs) # Need to delete
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue