Implement BVH

This commit is contained in:
CJSatnarine
2024-07-08 17:31:04 -04:00
parent 5ca33d1762
commit 80f3aff65d
18 changed files with 81908 additions and 351689 deletions

View File

@@ -40,6 +40,11 @@ inline double randomDouble(double min, double max) {
return min + (max - min) * randomDouble();
}
inline int randomInt(int min, int max) {
// Returns a random integer in [min, max].
return int(randomDouble(min, max++));
}
// Common headers.
#include "colour.h"
#include "interval.h"