diff --git a/demos/NormalMapping/src/main.cpp b/demos/NormalMapping/src/main.cpp index ae896a3b5f6117e3626e04fb3a73ff4c1afd4687..7f611c76690141d0c045831a5b1cda78fad485e0 100644 --- a/demos/NormalMapping/src/main.cpp +++ b/demos/NormalMapping/src/main.cpp @@ -276,20 +276,6 @@ int main(int argc, const char** argv) { textureProps->useColorTexture = useColorTexture? 1 : 0; - if (useColorTexture) { - material.specular = glm::vec3(0.2f); - materialBuffer.fill(&material, 1); - - lightProps.lightAmbient = glm::vec3(0.6f); - lightBuffer.fill(&lightProps, 1); - } else { - material.specular = glm::vec3(1.0f); - materialBuffer.fill(&material, 1); - - lightProps.lightAmbient = glm::vec3(0.2f); - lightBuffer.fill(&lightProps, 1); - } - auto cmdStream = core.createCommandStream(vkcv::QueueType::Graphics); core.prepareImageForSampling(cmdStream, diffusemapImage.getHandle());