Cornellbox demo mit gigantischem licht

This commit is contained in:
any
2026-08-26 17:26:14 +02:00
parent 0712e988df
commit 428da5a4bb
5 changed files with 17 additions and 7 deletions
+4 -2
View File
@@ -7,8 +7,9 @@
#include "helper.h"
#include <math.h>
#define epsilon 1e-8
#define RAYSPERPIXEL 100
#define lightBounces 6
#define RAYSPERPIXEL 40
#define lightBounces 5
#define GLOBALILLUMINATION 0.1
enum objectType {
SPHERETYPE,
QUADTYPE
@@ -25,6 +26,7 @@ RGBA getRayColor(RGBA colorList[], bool isLightList[]) {
}
if (firstLightHitIndex == -1) {
//rayColor = (RGBA){GLOBALILLUMINATION * colorList[0].r,GLOBALILLUMINATION * colorList[0].g,GLOBALILLUMINATION * colorList[0].b,1};
rayColor = (RGBA){0,0,0,1};
return rayColor;
}