I've been working on a path-tracer for some time, and all along I've used structs instead of classes for vectors and matrices. Today I changed all of them to classes instead, changing none of the actual function bodies themselves, and the results were miserable to say the least. Here's a render form before the change:
Needless to say I'm not asking for anyone to look through all my code and find out what's wrong, but I thought I'd ask if any of you have any ideas about why this is happening, considering that none of the actual function-bodies have been changed, except for what little is needed to make the change from class to struct.
What I meant was that none of the logic was changed. The codebase is quite large at this point, I could post the vector class here, but the other changes that were made are too pervasive, you would have to read through the entire thing...
ne555: I had done a bit of that already, but not enough. I wrote a few more tests and found the error! There was one function which created new variables with the same name as the class variables, which caused that function to fail. Thanks all! :)