From 3b99207172d86f7212007fb5068ae8a424f6baff Mon Sep 17 00:00:00 2001 From: Ben Hambrecht Date: Mon, 19 Feb 2018 15:30:33 +0100 Subject: [PATCH] Revert "Ambient light now also stable under camera rotations" This reverts commit f178a6981cbc4f3f7db47d8aa24a83c1a3386333. --- topics/light.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/topics/light.py b/topics/light.py index f4e1fdcc..4934f588 100644 --- a/topics/light.py +++ b/topics/light.py @@ -188,7 +188,6 @@ class LightSource(VMobject): R = np.array([[0,-1,0],[1,0,0],[0,0,1]]) self.rotation_matrix = np.dot(M,R) - self.update_ambient_light() self.spotlight.update_sectors() self.update_shadow() self.update_lighthouse() @@ -275,22 +274,6 @@ class LightSource(VMobject): self.lighthouse.submobjects = new_lh.submobjects - def update_ambient_light(self): - - new_ambient_light = AmbientLight( - source_point = VectorizedPoint(location = ORIGIN), - color = self.color, - num_levels = self.num_levels, - radius = self.radius, - opacity_function = self.opacity_function, - max_opacity = self.max_opacity_ambient - ) - new_ambient_light.apply_matrix(self.rotation_matrix) - new_ambient_light.move_source_to(self.get_source_point()) - self.ambient_light.submobjects = new_ambient_light.submobjects - - - class SwitchOn(LaggedStart): CONFIG = { "lag_ratio": 0.2,