# HG changeset patch # User sam # Date 1711380418 -25200 # Node ID cdf7ad53965a8890608fbad65d9cb8854da50407 # Parent 8467ce0d99dedc4ae67c12551c6600cce9fa02f2 fix: log output diff -r 8467ce0d99de -r cdf7ad53965a semicongine/renderer.nim --- a/semicongine/renderer.nim Mon Mar 25 07:52:24 2024 -0700 +++ b/semicongine/renderer.nim Mon Mar 25 22:26:58 2024 +0700 @@ -387,9 +387,9 @@ if value.len <= uniform.arrayCount: debug &"Uniform '{uniform.name}' found has short length (shader declares {uniform.arrayCount} but shaderGlobals and materials provide {value.len})" assert value.size <= uniform.size, &"During uniform update: gathered value has size {value.size} but uniform expects size {uniform.size}" - if value.size <= uniform.size: + if value.size < uniform.size: debug &"During uniform update: gathered value has size {value.size} but uniform expects size {uniform.size}" - debug &" update uniform {uniform.name} with value: {value}" + debug &" update uniform '{uniform.name}' with value: {value}" # TODO: technically we would only need to update the uniform buffer of the current # frameInFlight (I think), but we don't track for which frame the shaderglobals are no longer dirty # therefore we have to update the uniform values in all buffers, of all inFlightframes (usually 2)