I have opened a new PR to implement an idea I had for blending multiple textures using 2D texture arrays.
If there’s any interest in this, I think it’s ready to go. I would really appreciate any nits or showstoppers regarding this idea. Happy to iterate with the team!
Just a quick note, a lot of the test issues were because I was inheriting ProceduralTexture. I’m working on a refactor to use composition over inheritance. I think that’s the right way to go with this. Much less surface area for maintenance. Let me know if you folks have a concern with that!
Awesome! I did flag one existing bug with WebGL vs WebGPU alpha values. I confirmed the bug with Playwright using probes into the shader inputs and that is why the resulting values diverge. The fix is to update the texture 2D array class but that seemed out of scope. Should I fix (possibly affecting stuff unintentionally) or file a bug?
Second question was about coverage of add/remove/insert happening in functional tests vs unit tests. I think it’s covered but I’m seeing some of these Babylon internals for the first time. It’s different from the inside
EDIT: Also, kudos to the team for the Playwright system. Once I got integration tests working it became so much faster to validate code changes.
Fixed all issues besides the alpha test. Do you have a preference for how to tackle? I could post an issue along with the test script my LLM created for verification of the bug.
EDIT: working on a possible easy solution for this…