code ist jetzt schner aber ich habe durch einen pointer fehler in raytrace.c (nearestObject = &currentObject //zeigt immer auf die selbne adresse)
ein art negativ bild erzeugt
This commit is contained in:
any
2026-08-26 00:12:44 +02:00
parent 91bb170b23
commit 491eca3513
7 changed files with 149 additions and 153 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
#pragma once
#include "structs.h"
RGBA raytraceSphere(sphere **, ray *);
RGBA getPixelColor(object [], int, ray *);
RGBA raytrace(object [], int, ray *);
RGBA getRayColor(RGBA [], bool []);