
Argh, simply searching and replacing double with float results in self-intersection precision errors. The ompf smallpt thread mentions this problem http://ompf.org/forum/viewtopic.php?f=8&t=1079&start=0&sid=df3f2a3cc54c52b1accc4e6baf9e1c73.
smallpt float precision problems
August 8th, 2010 § 0 comments