long runtime bild

This commit is contained in:
any
2026-07-30 01:27:24 +02:00
parent e0096dce11
commit 82ab538095
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,12 +7,12 @@
RGBA raytraceSphere(sphere **objectList, ray *lightray) {
RGBA pixel = (RGBA){0,0,0,0};
#define lightBounces 1
#define lightBounces 3
//sphere **spheresHitList = (sphere **)calloc( (lightBounces + 1),sizeof(sphere*) );
//vec3 *spheresNormalList = (vec3 *)calloc( lightBounces + 1,sizeof(vec3) );
int hitLightIndex = -1;
vec3 sphereNormal;
int raysPerPixel = 50;
int raysPerPixel = 2000;
ray originalRay = *lightray;
for (int k = 0; k < raysPerPixel; k++) {