+ | Texture working finally !

This commit is contained in:
TheRedShip
2025-01-28 23:08:37 +01:00
parent 23f2a9a5c6
commit c59a9c037f
10 changed files with 142175 additions and 1300 deletions

View File

@ -228,7 +228,7 @@ void Scene::loadTextures()
unsigned char* image = stbi_load(path.c_str(), &width, &height, &channels, STBI_rgb_alpha);
if (!image)
throw std::runtime_error("Failed to load texture");
throw std::runtime_error("Failed to load texture " + path);
std::cout << "Loaded texture: " << path << " (" << width << "x" << height << ")" << std::endl;

View File

@ -67,7 +67,7 @@ Shader::Shader(std::string vertexPath, std::string fragmentPath, std::string com
const char *fragmentCode = loadFileWithIncludes(fragmentPath);
const char *computeCode = loadFileWithIncludes(computePath);
printWithLineNumbers(computeCode);
// printWithLineNumbers(computeCode);
_vertex = glCreateShader(GL_VERTEX_SHADER);