-
I was followed the previous section of simply intersecting the sphere correctly, but when showing the normals of the sphere with the color map, it seems that they are flipped or swapped in some way. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The problem was with the way I was storing my colors. I was storing them in an unsigned char for ease of writing to the file, but it resulted in the loss of all negative values, which are necessary to avoid the harsh lines and darkness that are seen in the image. The fixed commit is: kogandg/Renderer@79bfe9f |
Beta Was this translation helpful? Give feedback.
-
Thank you for following up and letting us all know! |
Beta Was this translation helpful? Give feedback.
The problem was with the way I was storing my colors. I was storing them in an unsigned char for ease of writing to the file, but it resulted in the loss of all negative values, which are necessary to avoid the harsh lines and darkness that are seen in the image. The fixed commit is: kogandg/Renderer@79bfe9f