Page 1 of 1

Problems with .mtl parser, only 1 material gets applied to rendered shape

Posted: Wed Jun 30, 2021 11:00 am
by ThatCodingGuy78
As I said in the title, I'm writing a .mtl parser and for some weird reason, only 1 material gets applied to my 3D rectangle. I have no idea if it's
my graphics code, or the parser..
Here's my .love file (Warning, spaghetti code ahead!)
Game Name.love
(11.34 KiB) Downloaded 417 times
The relevant function(s) are drawShape3D in graphics.lua, and parseMtl in objParser.lua