There’s a maximum number of textures you can use in a fragment shader, that you can query from engine.getCaps().maxTexturesImageUnits. It’s generally 16, but it may depend on your GPU.
Thanks for the reply, can I increase the maximum value by modifying the code? Or is this entirely a hardware limitation (GPU) and we can’t modify this maximum value at all?