Skip to content

Commit

Permalink
Remove scrap code
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiefl committed Jan 21, 2025
1 parent 2cba836 commit 4f2896d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pooltool/objects/ball/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,6 @@ def init_collision(self, cue: Cue):
self.nodes[f"ball_csphere_{self._ball.id}"] = collision_node

def init_shadow(self):
# Instead of linear spread, concentration more shadow directly under ball
N = 20
sigma = 0.5
coverages = []
for k in range(1, N):
coverage = 1.0 - (k / N) # from ~0.95 down to ~0.05 if N=20
if coverage <= 0.0:
continue
radius = np.sqrt(-2.0 * sigma**2 * np.log(coverage))
coverages.append(radius)
scales = np.array(coverages)

N = 20
start, stop = 0.4, 0.9 # fraction of ball radius
scales = np.linspace(start, stop, N)
Expand Down

0 comments on commit 4f2896d

Please sign in to comment.