JoeyDeVries/LearnOpenGL

[Request] Material loading (models without a texture, just color)

SimpleCppCoder opened this issue · 3 comments

Hello again! This time I just have a feature request, not a bug report. Can you add a section in the model loading tutorial for loading materials? Materials as in models that do not have a texture, just a color. Thanks! Love the tutorials so far!

I think you're doing it wrong because loaded objects have textures.

The OBJ model files can have materials defined with texture files or not. That does not only apply to OBJ model format either. You can create 3d models that do not have textures. tHis question is valid.

Materials can indeed have colors, just colors, or combination of colors and textures; and of course as many variations as you'd like so the sky is the limit. There are definitely few 'standard' ways of approaching this and allowing for pure color materials is one of them. I don't expect I'll be writing more new tutorials as new efforts I'd like to focus on Vulkan and quite busy at the moment, but I did note it down; it would be a great addition to discuss material setups. When I find time to work on Vulkan I'll see if I can write a chapter about that as well :)