refactored light updating to account for lights in hidden nodes

This commit is contained in:
devZoGok
2024-09-13 19:46:57 +03:00
parent 1103e527a8
commit 0b99083bab
4 changed files with 25 additions and 12 deletions
+3 -3
View File
@@ -58,10 +58,10 @@ namespace vb01{
if(!render) break;
}
if(render){
for(Light *l : lights)
l->update();
for(Light *l : lights)
l->update(render);
if(render){
for(Mesh *m : meshes)
m->update();