JoeyDeVries/LearnOpenGL

Model: not loading textures

IntellectualKitty opened this issue · 1 comments

I was trying to get the deferred shading lesson to work, but the backpack model doesn't load correctly and appears as solid black.

From the errors emitted, the first four letters of each texture name are being skipped, e.g., "Specular.jpg" becomes "ular.jpg". It's the same for the diffuse ("use.jpg") and normal ("al.png") maps.

As far as I can tell, the sample should work correctly-- it looks like the lack of a normal map is causing the normals to be zeroed out and the lack of a diffuse map is causing the ambient portion of the lighting equation to be zero as well.