[SOLVED] iOS textures count in shader

My shader works fine for both pc and android with 13 textures, but on ios I’m getting errors after passing more than 8 textures (or in some cases 9)

TypeError: undefined is not an object (evaluating ‘this.textureUnits[textureUnit][slot]’)

So, is there any stronger limitation on textures count you can pass to shader on ios, or am I doing smth wrong?

This is my project : https://playcanvas.com/editor/scene/622827
I’m passing textures to my shader in Scripts/main.js, lines 187 and 193-205

1 Like

@yaustar @dave @max we need your help please :slight_smile:

Check out webglreport.com on your device. The Max Texture Units value is the value you’re looking for. I believe it is 8 on iPhones.

1 Like

ok thanks will check

Hi @dave,
I’ve had a similar issue, and my project works fine on all iOS devices—with the exception of the iPhone Xs. In Chrome, it functions fine, however in Safari, the iframe either doesn’t load or, when it does, displays a white screen.