versuch reflexionen einzubauen. man sieht sie zwar, aber der rest ist auch noch beleuchtet

This commit is contained in:
any
2026-07-26 20:49:08 +02:00
parent 76f02ac5c5
commit 1c4dce53c1
3 changed files with 31 additions and 15 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ void exampleSphere( int width, int height, int channels, unsigned char *image) {
free(lightRay);
image[step] = (int)(pixelColor.r * 255.0);
image[step+1] = 0;
image[step+2] = 0;
image[step+1] = (int)(pixelColor.g * 255.0);
image[step+2] = (int)(pixelColor.b * 255.0);
if (channels == 4) {
image[step+3] = 255;
}