I want to follow this method to pass cubetextures into the material as an array when I enable the material plugin.But it’s always wrong, can someone help ?
Problematic PG:https://playground.babylonjs.com/#WGZLGJ#10531
In your PG you are calling setTexture but passing a texture array. It seems UniformBuffer does not expose a setTextureArray, but you can call setTextureArray directly on the underlying Effect. glTF Loader Demo | Babylon.js Playground (babylonjs.com)
I don’t know if it is a bad practice to operate on the underlying Effect directly though, and I’m also wondering if UniformBuffer should expose a setTextureArray. @sebavan?