My problem is: The playground is no longer working due to a new AFAIK error message: Cannot add an uniform Array dynamically. Please, add it using addUniform.
I dont remember that I got this error message when I was initially working on this playground, so I wonder what happened in the meantime.
I searched the playground for other examples of UniformBuffer, but none of the playgrounds worked. All of them showed different error messages.
So does anyone has an example that works so I can compare?
I used Chrome/Firefox (latest versions) on Windows 11.
Itās strange it depends on the browser as the error message is logged by our code in case you update an uniform array without having called addUniform first⦠In your PG, addUniform for elements is called before the udpateUniformArray call, so it should work unconditionnally and in all browsersā¦
Uniform buffers are disabled on Chrome for Mac, but eg you can set disableUniformBuffers to false like on line 35 and then the PG works for me on Chrome on my Macbook. EDIT: but IDK under what conditions the performance might tankā¦
PS just for reference, itās this PR that disabled uniform buffers for Chrome/Mac. IIRC it was because large GLB models were loading much slower with them enabled. EDIT: hereās the forum thread where it fixed the slow loading issue for reference.
Thank you! Using the provided line to enable the uniform buffers solved my problem. I was just wondering: Can we provide a proper error message? If @Blake didnāt saw this post here, I would probably never found the solution.