From fcabf8a1a8c90073544e0cfc949967747a3002bc Mon Sep 17 00:00:00 2001 From: Matt Low Date: Fri, 20 Nov 2020 12:39:16 +0400 Subject: [PATCH] Reduce reflecting surface inital angle --- geom/demos/reflection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geom/demos/reflection.py b/geom/demos/reflection.py index 864aaca..3a4e1cd 100644 --- a/geom/demos/reflection.py +++ b/geom/demos/reflection.py @@ -11,7 +11,7 @@ class Reflection: title = "Reflection" def __init__(self): - self.s_angle = -pi/4 + self.s_angle = -pi/8 def handle_key_down(self, key): pass @@ -35,6 +35,7 @@ class Reflection: s = sub(*s_end, *s_start) # the incoming ray, towards reflection surface + # it's important that it is pointing towards the reflecting surface incoming = sub(0, 0, *get_cursor_pos()) # surface normal