Problems with .mtl parser, only 1 material gets applied to rendered shape
Posted: Wed Jun 30, 2021 11:00 am
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!) The relevant function(s) are drawShape3D in graphics.lua, and parseMtl in objParser.lua
my graphics code, or the parser..
Here's my .love file (Warning, spaghetti code ahead!) The relevant function(s) are drawShape3D in graphics.lua, and parseMtl in objParser.lua