mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Push depth_test into __init__ args
This commit is contained in:
parent
f64cae1db4
commit
72aaed57d5
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,6 @@ if TYPE_CHECKING:
|
||||||
|
|
||||||
class Surface(Mobject):
|
class Surface(Mobject):
|
||||||
render_primitive: int = moderngl.TRIANGLES
|
render_primitive: int = moderngl.TRIANGLES
|
||||||
depth_test: bool = True
|
|
||||||
shader_folder: str = "surface"
|
shader_folder: str = "surface"
|
||||||
shader_dtype: Sequence[Tuple[str, type, Tuple[int]]] = [
|
shader_dtype: Sequence[Tuple[str, type, Tuple[int]]] = [
|
||||||
('point', np.float32, (3,)),
|
('point', np.float32, (3,)),
|
||||||
|
@ -38,6 +37,7 @@ class Surface(Mobject):
|
||||||
reflectiveness: float = 0.3,
|
reflectiveness: float = 0.3,
|
||||||
gloss: float = 0.1,
|
gloss: float = 0.1,
|
||||||
shadow: float = 0.4,
|
shadow: float = 0.4,
|
||||||
|
depth_test: bool = True,
|
||||||
u_range: Tuple[float, float] = (0.0, 1.0),
|
u_range: Tuple[float, float] = (0.0, 1.0),
|
||||||
v_range: Tuple[float, float] = (0.0, 1.0),
|
v_range: Tuple[float, float] = (0.0, 1.0),
|
||||||
# Resolution counts number of points sampled, which for
|
# Resolution counts number of points sampled, which for
|
||||||
|
@ -62,6 +62,7 @@ class Surface(Mobject):
|
||||||
reflectiveness=reflectiveness,
|
reflectiveness=reflectiveness,
|
||||||
gloss=gloss,
|
gloss=gloss,
|
||||||
shadow=shadow,
|
shadow=shadow,
|
||||||
|
depth_test=depth_test,
|
||||||
)
|
)
|
||||||
self.compute_triangle_indices()
|
self.compute_triangle_indices()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue