Skip to content

Commit 2fbaa0c

Browse files
committed
Updated colors-and-light
1 parent b1ae552 commit 2fbaa0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

8-colors-and-light/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.12)
22

3-
project(colors)
3+
project(colors_and_light)
44

55
add_executable(main.o main.cpp glWindow.cpp mesh.cpp shader.cpp camera.cpp stb_image.cpp)
66

8-colors-and-light/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ int main()
321321
Shader::enableDepth();
322322

323323
// Use lightShader program before setting uniforms
324-
// lightShader.use();
325-
// lightShader.setVec3("color", glm::value_ptr(colors[0]));
324+
lightShader.use();
325+
lightShader.setVec3("color", glm::value_ptr(colors[0]));
326326

327327
// Main loop
328328
// Run until window should close
@@ -363,7 +363,7 @@ int main()
363363
model = glm::translate(model, lightPosition);
364364
lightShader.setMatrix4fv("model", 1, GL_FALSE, glm::value_ptr(model));
365365
// Set light object's light strength
366-
lightShader.setVec3("color", glm::value_ptr(colors[lightCubeIndex]));
366+
// lightShader.setVec3("color", glm::value_ptr(colors[lightCubeIndex]));
367367
lightShader.setFloat("strength", lightStrength);
368368
}
369369
else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy