Added a very simple light source so the 3D models now have simple shading applied to them.
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ class Vector3d:
|
||||
# Returns the 'normal'.
|
||||
x = self.y * vector3d.z - self.z * vector3d.y
|
||||
y = self.z * vector3d.x - self.x * vector3d.z
|
||||
z = self.x * vectored.y - self.y * vector3d.x
|
||||
z = self.x * vector3d.y - self.y * vector3d.x
|
||||
|
||||
return Vector3d(x, y, z)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user