Reduce reflecting surface inital angle

This commit is contained in:
Matt Low 2020-11-20 12:39:16 +04:00
parent 17e0ab19ca
commit fcabf8a1a8

View File

@ -11,7 +11,7 @@ class Reflection:
title = "Reflection" title = "Reflection"
def __init__(self): def __init__(self):
self.s_angle = -pi/4 self.s_angle = -pi/8
def handle_key_down(self, key): def handle_key_down(self, key):
pass pass
@ -35,6 +35,7 @@ class Reflection:
s = sub(*s_end, *s_start) s = sub(*s_end, *s_start)
# the incoming ray, towards reflection surface # the incoming ray, towards reflection surface
# it's important that it is pointing towards the reflecting surface
incoming = sub(0, 0, *get_cursor_pos()) incoming = sub(0, 0, *get_cursor_pos())
# surface normal # surface normal