Recently finished making a cube rotate using functions I wrote myself to calculate MVP matrices and such.
The cube appears and rotates, but seems to be partially transparent despite me telling it not to be, and sides disappear as they come to the front.
I expect it to look like this.
Code: http://pastebin.com/AuDVuUy5 (in a paste bin for brevity)
Shader files: http://pastebin.com/WFKdQY2x
Really sorry for the enormous code dump, but I’ve absolutely no idea whereabouts this error is coming from .
I can clarify on any of the allegro calls that aren’t obvious.