From f5469d85e187c04f8eb22c443ce8b26c06af21b5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 19 Sep 2023 15:15:46 +0200 Subject: [PATCH] fixed error where I accidentally used the diffusemap as a specular map --- src/Engine/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engine/main.cpp b/src/Engine/main.cpp index 4e73ae9..7727660 100644 --- a/src/Engine/main.cpp +++ b/src/Engine/main.cpp @@ -254,7 +254,7 @@ int main() //lighting->SetFloat("spotLight.quadratic", 0.032f); diffuseMap.BindTexture(); - diffuseMap.BindTexture(GL_TEXTURE1); + specularMap.BindTexture(GL_TEXTURE1); for (size_t i = 0; i < allObjects.size(); i++) {