mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Tiny refactor to make ShowShadows easier to modify in subclasses
This commit is contained in:
@ -57,6 +57,10 @@ class ShowShadows(ThreeDScene):
|
|||||||
"camera_config": {
|
"camera_config": {
|
||||||
"light_source_start_point": 10 * OUT,
|
"light_source_start_point": 10 * OUT,
|
||||||
"frame_center": [0, 0, 0.5],
|
"frame_center": [0, 0, 0.5],
|
||||||
|
},
|
||||||
|
"initial_orientation_config": {
|
||||||
|
"phi": 60 * DEGREES,
|
||||||
|
"theta": -120 * DEGREES,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,8 +148,7 @@ class ShowShadows(ThreeDScene):
|
|||||||
temp_shadow = updating_mobject_from_func(lambda: get_shadow(obj3d))
|
temp_shadow = updating_mobject_from_func(lambda: get_shadow(obj3d))
|
||||||
self.add(temp_shadow)
|
self.add(temp_shadow)
|
||||||
self.move_camera(
|
self.move_camera(
|
||||||
phi=60 * DEGREES,
|
**self.initial_orientation_config,
|
||||||
theta=-120 * DEGREES,
|
|
||||||
added_anims=[
|
added_anims=[
|
||||||
LaggedStart(DrawBorderThenFill, obj3d)
|
LaggedStart(DrawBorderThenFill, obj3d)
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user