Cornellbox demo mit gigantischem licht
This commit is contained in:
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user