shadows everywhere! lights must be moved elsewhere

This commit is contained in:
2026-01-29 19:54:03 +01:00
parent 73de6b6dcc
commit 7bd2a5caa6
2 changed files with 14 additions and 1 deletions

View File

@@ -409,6 +409,8 @@ void renderNode(SceneNode* node) {
GLint cameraPosLoc = shader->getUniformFromName("cameraPosition");
glUniform3fv(cameraPosLoc, 1, glm::value_ptr(cameraPosition));
GLint ballPosLoc = shader->getUniformFromName("ballPosition");
glUniform3fv(ballPosLoc, 1, glm::value_ptr(ballPosition));
switch(node->nodeType) {
case GEOMETRY: