Here’s part four! I’ve been experimenting with lighting algorithms lately. This renderer calculates the distance between two 3D points. With that distance, it can calculate the light brightness. This method works well on flat surfaces, but not well with shadows or more complex 3D objects.