I’m still learning lots about graphics programming, and I often make mistakes. These mistakes, or bugs, usually take on very unique appearances in the game. I’ve got a couple dozen screenshots of different bugs that I’ve encountered, and I thought it might be fun to share a couple of them from time to time. This is my first blog post in the style of a ‘bug showoff’. Enjoy!
The first visual bug I encountered while modifying the lighting algorithm was due to out of alignment normals being calculated.
This bug occurred due to how chunk boundaries are handled for lighting. This information was getting stored in the vertex position and the shader was not correctly removing it, resulting in a misplaced vertex.
Possibly my favorite (and most bizarre) bug. This was due to an invalid shader program that the GPU still tried to execute. Simple fix!