Book 1 normal calculation and Multiple spheres. #1305
TheRealFirst
started this conversation in
Debugging
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
When I wrote the normal calculation code, everything looked pretty fine, the colors werent fully right but that could be because of the way i implemented it. The problems started, when I tried to use the faster code which is shown in the book, which just didnt work. I tripple checked everything but it didnt work. Then I tried to roll with the old (worse) code and implemented the multiple spheres thing. This doesnt work with both ways (the faster and the slower option), both give me the same result (shown in the picture). Has anyone ever seen something like that, because I dont think my code is wrong, I checked it multiple times. Worth noting is that im using floats and not doubles because of glm.
I would be very thankful if someone helped me.
Beta Was this translation helpful? Give feedback.
All reactions