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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
ThatCodingGuy78
Prole
Posts: 16
Joined: Thu May 27, 2021 12:32 am

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

Post 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 235 times
The relevant function(s) are drawShape3D in graphics.lua, and parseMtl in objParser.lua
"There is no such thing as a mistake, only happy accidents"
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests