Include sceneChooser function

This commit is contained in:
CJSatnarine
2024-10-19 20:01:03 -04:00
parent 2c98cc7791
commit 1c1b6c68aa

View File

@@ -319,7 +319,7 @@ void cornellSmoke() {
cam.aspectRatio = 1.0;
cam.imageWidth = 600;
cam.samplesPerPixel = 200;
cam.samplesPerPixel = 600;
cam.maxDepth = 50;
cam.background = colour(0,0,0);
@@ -406,9 +406,7 @@ void finalScene(int imageWidth, int samplesPerPixel, int maxDepth) {
cam.render(world);
}
int main(void) {
int sceneToShow = 4;
void sceneChooser(int sceneToShow) {
switch (sceneToShow) {
case 1:
bouncingSpheres();
@@ -445,3 +443,9 @@ int main(void) {
break;
}
}
int main(void) {
// Choose a scene to render.
sceneChooser(1);
}