Textures turned black

Hey, I had a relatively big working scene until i decided to refactor some code. I did replace the render loop and some of the loading logic, but their order is kept. Yet what I see now is every mesh and textures are loaded, yet all the meshes have a black texture.

Has anyone ever run into this? What are the general reasons for such behavior?

My fingers were faster than my brain…

Thanks to some JS boolean magic, my lights were switched off :sun_with_face: