Added a very simple light source so the 3D models now have simple shading applied to them.

This commit is contained in:
2020-07-15 04:12:39 -05:00
parent 05d2beb8ac
commit 34f5917359
4 changed files with 98 additions and 32 deletions
+7
View File
@@ -0,0 +1,7 @@
import vectors
class Triangle:
def __init__(self, coords):
self.coords = coords # Matrix3x3
self.object_id = None
self.color = None