# HG changeset patch # User sam # Date 1711380418 -25200 # Node ID 4b7914fa615fb8bc1c1e8ffaa24b25ee72ebb21b # Parent 638138ba622e39bfe3ddac4332556e206f129272 fix: log output diff -r 638138ba622e -r 4b7914fa615f 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)