For comparison, here is a Maya software render of a similar scene:
Now that I look at those two, I realize the "ray-casting" algorithm I pulled out of my ass is clearly wrong. Damn. Looks like I will actually have to reference my old CIS460 notes. Groooaan.
UPDATE: Figured out what my problem was. I was calculating color values based on distance from the light, not the angle between the point on the surface and the light. Laziness: 1, Actually knowing what I'm doing: 0
No comments:
Post a Comment