Finally finished chapter 5, Ray-Sphere Intersections. I have the objects checking if a ray intersects with itself. Next on to Light and Shading and that's when the interesting results really begin.
I did learn that Go does not allow circular importing. IOW, package "ray" can not import package "object" and also have package "object" import package "ray"
I like that, I think it's better, it always felt weird to me when I would do it in C#, but I must have gotten quite used to it because it caused a bit of an issue for me in Go and I couldn't have object and ray import each other. I got it sorted out, but that's certainly something I will have to keep in mind going forward.
|